Commit Graph

2066 Commits

Author SHA1 Message Date
Windel Bouwman
fa8d3524bf Use extend_class macro even more 2019-03-23 17:49:49 +01:00
Windel Bouwman
9b4d719197 Merge pull request #728 from RustPython/remove_attribute_protocol
Remove attribute protocol
2019-03-23 13:13:34 +01:00
Adam Kelly
441560b691 Delete Attribute Protocol. 2019-03-23 11:29:22 +00:00
Adam Kelly
386f90fa25 Remove PyContext.get_attr. 2019-03-23 11:29:22 +00:00
Windel Bouwman
9630c5cee1 Merge pull request #727 from RustPython/wasm_no_attribute_protocol
Remove attribute protocol from wasm.
2019-03-23 12:13:02 +01:00
Windel Bouwman
8fa315110e Merge pull request #726 from RustPython/bool_magic_methods
Replace special cases in boolval with __bool__ method on types.
2019-03-23 11:41:36 +01:00
Adam Kelly
c8bdb249b0 Remove attribute protocol from wasm. 2019-03-23 10:11:39 +00:00
Adam Kelly
9ebbde8126 Replace special cases in boolval with __bool__ method on types. 2019-03-23 09:31:42 +00:00
Adam
26a238085f Merge pull request #724 from RustPython/cleaning-tweaks
Increase usage of extend_class macro.
2019-03-23 09:14:50 +00:00
Adam
cea5341473 Merge pull request #723 from skinny121/isinstance_classref
Change isinstance/issubclass to accept PyClassRef
2019-03-23 09:14:16 +00:00
Windel Bouwman
b93f96d491 Increase usage of extend_class macro. 2019-03-23 09:16:32 +01:00
ben
983cb9e886 Fix Never::class signature 2019-03-23 19:35:42 +13:00
ben
4e7e503785 Fix wasm build, to reflect that isinstance now takes a PyClassRef 2019-03-23 19:32:31 +13:00
ben
ad584df120 Allow context.set_attr to accept PyRef values in addition to PyObjectRef 2019-03-23 19:32:31 +13: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
Joey
b7fa08eb36 Merge pull request #722 from RustPython/joey/unboxed-payload-2
Remove Box from PyObject
2019-03-22 20:29:36 -07:00
Joey
3f98a8ab1b Merge pull request #721 from skinny121/context_ref_types
Change types in PyContext to be PyClassRef's than PyObjectRef's
2019-03-22 19:14:01 -07:00
Joey
050bf0730e Remove HeldRcInner 2019-03-22 19:10:22 -07:00
Joey Hain
85ffde7382 Fix wasm 2019-03-22 18:37:06 -07:00
Joey Hain
c06b1c70df Fix merge issue 2019-03-22 18:05:24 -07:00
Joey Hain
7b4b0979f4 Merge remote-tracking branch 'origin/master' into joey/unboxed-payload-2 2019-03-22 18:04:15 -07:00
Joey Hain
bb161a5a67 Remove Box from PyObject 2019-03-22 18:04:09 -07:00
ben
b354b86b7b Fix none_new, return same object that is in PyContext 2019-03-23 13:00:17 +13:00
ben
5c7812734d Use more specific ref type than PyObjectRef in PyContext 2019-03-23 13:00:12 +13:00
coolreader18
79a7aed46d Make logo larger 2019-03-22 18:12:08 -05:00
coolreader18
c430b5a597 Fix logo in README 2019-03-22 18:10:46 -05:00
coolreader18
cf78d6b3eb Add logo to README 2019-03-22 18:09:05 -05:00
Adam
52943bf73c Merge pull request #710 from RustPython/class_get_attr_2
Class get attr 2
2019-03-22 22:21:55 +00:00
Joey
bcc3aa0910 Merge pull request #720 from RustPython/cleaning-tweaks
Use the extend class macro more.
2019-03-22 13:56:39 -07:00
Adam Kelly
c67cb07d9d Rename class_has_item and class_has_attr. 2019-03-22 20:54:14 +00:00
Adam Kelly
50437f8a75 Use class_get_attr in various places where we need the internal interface 2019-03-22 19:51:02 +00:00
Adam Kelly
909b38e774 Adapt objobject to avoid AttributeProtocol. 2019-03-22 19:49:09 +00:00
Adam Kelly
66adc25201 objtype - replace AttributeProtocol access with class_get_attr. 2019-03-22 19:47:51 +00:00
Windel Bouwman
68ba050030 Use the extend class macro more. 2019-03-22 20:45:34 +01:00
coolreader18
8f6d8a78de Keepalive WASM webpack build 2019-03-22 13:14:08 -05:00
coolreader18
162c2dc207 Merge branch 'coolreader18/multiline-repl'
Make the REPL handle line continuation better #711
2019-03-22 11:27:05 -05:00
Windel Bouwman
7ed4bc4aa8 Merge pull request #698 from palaviv/super
Use first argument in super
2019-03-22 17:13:13 +01: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
5e74d53fb4 Merge pull request #716 from palaviv/fix-format
Fix format
2019-03-22 09:32:54 -05:00
Aviv Palivoda
474577beca Fix format 2019-03-22 16:23:15 +02:00
coolreader18
a9e2cc90d4 Merge pull request #714 from RustPython/coolreader18/immutable-vm-ref
Convert all &mut VirtualMachine to &VirtualMachine
2019-03-22 07:36:45 -05:00
coolreader18
18be23a2ec Merge branch 'master' into coolreader18/multiline-repl 2019-03-22 07:29:53 -05:00
coolreader18
36ff4e37d3 Use vm.get_attribute 2019-03-22 07:29:14 -05:00
coolreader18
5c8c4a849d Merge branch 'master' into coolreader18/multiline-repl 2019-03-22 07:27:10 -05:00
coolreader18
79666c255a Fix some issues wrt mutability 2019-03-22 07:24:06 -05:00
coolreader18
b0d8935731 Merge branch 'master' into coolreader18/immutable-vm-ref 2019-03-22 07:21:45 -05:00
Adam
e7eff34e13 Merge pull request #709 from RustPython/avoid_attribute_protocol
Avoid attribute protocol
2019-03-22 11:42:30 +00:00
Adam Kelly
23ee751880 Use vm.get_attribute to access attributes of modules. 2019-03-22 10:54:28 +00:00