Commit Graph
17 Commits
Author SHA1 Message Date
Joey Hain f10fa6db44 Remove outer RefCell from PyObjectRef 2019-02-25 21:01:37 -08:00
Joey eec76ef8e8 Don't require objtype import to use arg_check! macro 2019-02-21 08:38:02 -08:00
Joey df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
Windel Bouwman d048d0a0da Merge pull request #445 from RustPython/co_consts
Co consts
2019-02-13 22:59:53 +01:00
ZapAnton 9144109f7d Fixed the useless_vec clippy warning 2019-02-12 16:39:38 +03:00
Adam Kelly 8a89e13a7e Add .co_consts to code class. 2019-02-12 09:47:02 +00:00
Adam Kelly 5c5d27203a Support for all co_* that can implemented currently. 2019-02-09 12:22:51 +00:00
Adam Kelly 769b889097 Source path should always be set, make it non-optional for code object. 2019-02-09 12:22:51 +00:00
Adam Kelly 8116dae65f Add some co_* methods to code objects. 2019-02-09 12:15:16 +00:00
Adam Kelly 7b2508a730 Start adding methods to code object. 2019-02-09 12:15:16 +00:00
Windel Bouwman baa59ec2fc Merge branch 'master' into fix_useless_format 2019-02-06 10:50:07 +01:00
ZapAnton 0d3b218237 Fixed the 'toplevel_ref_arg' clippy warning
This replaces all the occurrences of the
'let ref var = another_var' with the
'let var = &another_var'

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#toplevel_ref_arg
2019-02-05 21:45:56 +03:00
ZapAnton 57e2beef3a Fixed the 'useless_format' clippy warning
This replaces all the occurrences of the format!(<&str>) with the <&str>.to_string()

Relevant clippy warning: https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
2019-02-05 20:48:50 +03:00
Windel Bouwman 892493e464 Rename PyObjectKind into PyObjectPayload 2019-01-30 18:06:27 +01:00
Windel Bouwman 4095e0cad7 Modify location of set_attr so that we are able to create str python objects for the dictionary. 2018-12-12 22:06:19 +01:00
Windel Bouwman 99af466a88 Move max function test cases to snippet dir. Implement key and default argument on max function. 2018-11-07 17:26:18 +01:00
Windel Bouwman 4acea45f78 Add code and frame python objects. 2018-11-07 15:24:18 +01:00