Joey
|
2aee2981e3
|
Remove FromPyObjectRef, replace with downcast
|
2019-03-23 09:38:03 -07: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 |
|
Windel Bouwman
|
b93f96d491
|
Increase usage of extend_class macro.
|
2019-03-23 09:16:32 +01: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 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 |
|
Adam
|
52943bf73c
|
Merge pull request #710 from RustPython/class_get_attr_2
Class get attr 2
|
2019-03-22 22:21:55 +00: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 |
|
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
|
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 |
|
coolreader18
|
a9051ab462
|
Convert all &mut VirtualMachine to &VirtualMachine
|
2019-03-22 01:48:14 -05:00 |
|
Joey
|
90db9812e5
|
Merge pull request #707 from RustPython/joey/proper-pyref-display
Fix the Display impl for PyRef
|
2019-03-21 09:32:02 -07:00 |
|
Adam Kelly
|
19fc202e1a
|
Classmethod/staticmethod - rewrite using structs and new style methods.
|
2019-03-21 13:03:51 +00:00 |
|
Adam Kelly
|
e66b5078a8
|
Introduce TryIntoRef<T> to make vm.get_attribute more usable.
|
2019-03-21 10:58:32 +00:00 |
|
Joey
|
59807710f7
|
Merge remote-tracking branch 'origin/master' into joey/proper-pyref-display
|
2019-03-21 03:43:40 -07:00 |
|
ben
|
4ad8d5ed9b
|
Make property.__get__ owner parameter optional
|
2019-03-21 19:57:35 +13:00 |
|
ben
|
a5f6a7b10d
|
Implement calling __set__ and __delete__
|
2019-03-21 19:34:47 +13:00 |
|
Joey Hain
|
0b1b6682c1
|
Fix Display impl for PyRef
|
2019-03-20 18:32:25 -07:00 |
|
Joey Hain
|
54753b3d14
|
list, tuple: return NotImplemented for unsupported comparisons
|
2019-03-20 18:32:08 -07:00 |
|
coolreader18
|
3731148237
|
Merge branch 'master' into coolreader18/fix-clippy1
|
2019-03-20 09:03:07 -05:00 |
|
ben
|
08e66b5002
|
Create workaround for properties on None
|
2019-03-20 19:58:56 +13:00 |
|
ben
|
a5050ebafe
|
Make property return itself if invoke by class binding
|
2019-03-20 19:58:54 +13:00 |
|
ben
|
6c3a402eca
|
Fix setting attributes on modules
|
2019-03-20 19:58:48 +13:00 |
|
ben
|
48dd507cad
|
Remove dict from object
|
2019-03-20 19:58:46 +13:00 |
|
ben
|
c77b1f3cf5
|
Fix bug with __getattr__
|
2019-03-20 19:56:25 +13:00 |
|
ben
|
4e42bd077c
|
Implement __setattr__ based on @nhynes(#540) PR
|
2019-03-20 19:53:50 +13:00 |
|
coolreader18
|
33b99b203f
|
Some minor things
|
2019-03-19 20:34:35 -05:00 |
|
coolreader18
|
b30d56df29
|
Fix some more clippy warnings
|
2019-03-19 20:02:06 -05:00 |
|
coolreader18
|
4c9527be47
|
Merge branch 'master' into coolreader18/fix-clippy1
|
2019-03-19 19:19:36 -05:00 |
|
Windel Bouwman
|
5b6b33b644
|
Merge pull request #697 from RustPython/more_pyobject
More pyobject
|
2019-03-19 19:21:44 +01:00 |
|
Windel Bouwman
|
1969c90d98
|
Merge pull request #696 from palaviv/super
super in class methods
|
2019-03-19 19:08:53 +01:00 |
|
Adam Kelly
|
5384e07bf3
|
Remove PyObject::new from tuple and list.
|
2019-03-19 17:15:14 +00:00 |
|
Adam Kelly
|
c6e7d8901f
|
Remove use of PyObject::new from objset.
|
2019-03-19 17:14:51 +00:00 |
|
Adam Kelly
|
638196bce4
|
Eliminate PyObject::new from objenumerate.
|
2019-03-19 16:42:40 +00:00 |
|
Adam Kelly
|
d38e89a811
|
Remove PyObject::new from objgenerator.
|
2019-03-19 16:28:53 +00:00 |
|
Adam Kelly
|
aeaa94966f
|
Remove PyObject::new from objmap.
|
2019-03-19 16:24:19 +00:00 |
|
Aviv Palivoda
|
c3d0fddfcf
|
Add PySuper
|
2019-03-19 18:08:43 +02:00 |
|
coolreader18
|
f78f558404
|
Fix clippy lints
|
2019-03-19 10:52:39 -05:00 |
|