Joey
|
c2e1e9b0dc
|
Convert range to new args style
|
2019-03-24 09:59:06 -07:00 |
|
coolreader18
|
3b582760b4
|
Merge pull request #733 from RustPython/coolreader18/wasm-browser-dom
[WASM] Add PyDocument and PyElement classes to browser
|
2019-03-24 10:47:46 -05:00 |
|
coolreader18
|
6450612bdf
|
Merge branch 'master' into coolreader18/wasm-browser-dom
|
2019-03-24 08:54:51 -05:00 |
|
Adrian Wielgosik
|
e39df6daef
|
Basic implementation of T.__subclasses__().
Ideally, the weak list should be updated whenever a type is removed,
and the list shouldn't be a Vec, but this should be good enough for
starters.
|
2019-03-24 12:49:04 +01:00 |
|
Adrian Wielgosik
|
a895ab35ae
|
Make PyWeak::downgrade take a reference
|
2019-03-24 11:56:15 +01:00 |
|
Adrian Wielgosik
|
9a6f7aa8a1
|
Make PyRef::clone not require T implementing Clone
It seems to be a weird consequence of using PhantomData,
so I just rolled a custom Clone.
|
2019-03-24 11:56:15 +01:00 |
|
Joey
|
fbd0860f1b
|
Merge pull request #740 from skinny121/into_object_cleanup
Use specific PyRef where possible - code object/type_new_class
|
2019-03-23 21:28:39 -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 |
|
Joey
|
84d47d21cf
|
Rename to just Either
|
2019-03-23 17:51:12 -07:00 |
|
ben
|
6eb93a7000
|
Move code methods into impl PyCodeRef
|
2019-03-24 13:50:50 +13:00 |
|
coolreader18
|
0f2889a0e5
|
Fix weird rustfmt
|
2019-03-23 19:46:46 -05:00 |
|
ben
|
db8e648646
|
Make PyFunction.code a PyCodeRef, PyGenerator.frame a FrameRef, and
other improvements to increase use of specific ref types.
|
2019-03-24 13:41:37 +13:00 |
|
ben
|
dc68101577
|
Refactor type_new_class to use more specific ref types
|
2019-03-24 12:08:15 +13:00 |
|
Joey
|
e5066da94e
|
Merge remote-tracking branch 'origin/master' into joey/range-getitem-either
|
2019-03-23 15:50:12 -07:00 |
|
Joey
|
a5558e0e32
|
Introduce Either extractor and convert range.__getitem__
|
2019-03-23 15:05:12 -07:00 |
|
ben
|
faf1925a25
|
Remove usages of PyClassRef::from_pyobj
|
2019-03-24 10:51:52 +13:00 |
|
ben
|
6fa059fd6c
|
Make PyObject.typ a PyClassRef
|
2019-03-24 10:51:52 +13:00 |
|
Joey
|
18ed00a653
|
Range cleanups
|
2019-03-23 12:48:37 -07: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 |
|
Joey
|
65e00a8f32
|
Merge pull request #730 from RustPython/joey/remove-frompyobjecterf
Remove FromPyObjectRef, replace with downcast
|
2019-03-23 11:05:10 -07: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 |
|
Joey
|
f413beb051
|
Fix test
|
2019-03-23 10:03:40 -07:00 |
|
Windel Bouwman
|
fa8d3524bf
|
Use extend_class macro even more
|
2019-03-23 17:49:49 +01:00 |
|
Joey
|
2aee2981e3
|
Remove FromPyObjectRef, replace with downcast
|
2019-03-23 09:38:03 -07:00 |
|
coolreader18
|
430bc4bac2
|
Fix vm.import when there are no frames on stack
|
2019-03-23 09:35:53 -05: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 |
|