Commit Graph

40 Commits

Author SHA1 Message Date
ben
1f8181b561 Update formatting to be consistent with rustfmt included in 1.34 2019-04-14 09:40:59 +12:00
Adam Kelly
7b2d92f495 Delete DictProtocol. impl ItemProtocol for PyDictRef. 2019-04-06 10:15:29 +01:00
Adam Kelly
c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
Joey Hain
8bdc766bed Use name field directly 2019-03-25 19:32:58 -07:00
Joey Hain
6474a4a6ef Remove objtype::get_type_name() 2019-03-25 19:18:07 -07:00
Joey Hain
cc4f3fdb40 Clean up TypeProtocol 2019-03-25 19:18:01 -07:00
coolreader18
12564da369 Rustfmt? 2019-03-23 22:46:21 -05:00
coolreader18
ec433cdbb9 Fix rustfmt again (?) 2019-03-23 22:17:21 -05:00
coolreader18
946103bca8 Merge branch 'master' into coolreader18/wasm-browser-dom 2019-03-23 20:12:26 -05:00
coolreader18
0f2889a0e5 Fix weird rustfmt 2019-03-23 19:46:46 -05:00
coolreader18
cecc2e1835 Merge pull request #732 from palaviv/super-classmethod
Support classmethod super
2019-03-23 14:17:06 -05:00
coolreader18
9050799cc4 Merge branch 'master' into coolreader18/wasm-browser-dom 2019-03-23 13:22:07 -05:00
Aviv Palivoda
1d820a9586 Use payload_is 2019-03-23 20:01:11 +02:00
Aviv Palivoda
2f9a49d077 Support classmethod super 2019-03-23 19:56:00 +02:00
Windel Bouwman
fa8d3524bf Use extend_class macro even more 2019-03-23 17:49:49 +01:00
coolreader18
430bc4bac2 Fix vm.import when there are no frames on stack 2019-03-23 09:35:53 -05:00
ben
c1d5ce715f Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
2019-03-23 19:32:31 +13:00
ben
5c7812734d Use more specific ref type than PyObjectRef in PyContext 2019-03-23 13:00:12 +13:00
Aviv Palivoda
2c8657c3b3 Add load_cell to NameProtocol 2019-03-22 16:37:28 +02:00
Aviv Palivoda
84e89d37e2 Use __class__ cell in super 2019-03-22 16:37:28 +02:00
Aviv Palivoda
6230a25c4b Use first argument in super 2019-03-22 16:37:28 +02:00
coolreader18
a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -05:00
Aviv Palivoda
c3d0fddfcf Add PySuper 2019-03-19 18:08:43 +02:00
Aviv Palivoda
50cc9fa91f super works in class methods 2019-03-18 22:00:54 +02:00
Joey
7bfd2e6e84 Move function items out of pyobject module 2019-03-15 21:27:11 -07:00
ben
b1a070acc2 Only use real isinstance/issubclass for builtins and move the real
versions to the vm.
2019-03-04 19:55:58 +13:00
ben
5779124f11 rustfmt 2019-02-28 20:40:32 +13:00
ben
e30d91febc Swap naming of is{instance, subclass} <-> real_is{instance, subclass} 2019-02-28 20:32:57 +13:00
ben
52c32fab3a Call __instancecheck__ and __subclasscheck__ as part of isinstance and issubclass 2019-02-28 20:30:31 +13:00
Joey
df76ffe116 Replace most relative imports with 2018-style crate 2019-02-20 08:50:53 -08:00
Adrian Wielgosik
21299ecf3d Refactor arg_check macro 2019-02-13 21:05:23 +01:00
ZapAnton
2b0f87b69f super type: Added __doc__ 2019-02-08 19:28:39 +03: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
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
4acea45f78 Add code and frame python objects. 2018-11-07 15:24:18 +01:00
Windel Bouwman
c69b43d13b Add frozenset class, callable function and enumerate function. 2018-11-06 21:42:42 +01:00
Windel Bouwman
ce5bb72ed0 Minor delta on super class. 2018-11-05 20:46:32 +01:00
Windel Bouwman
e3000e2f25 Add super object type skeleton. 2018-11-04 23:10:02 +01:00