Commit Graph

2124 Commits

Author SHA1 Message Date
Windel Bouwman
6ae10ed938 Fix build and add extend_class macro usage for set and frozenset 2019-03-25 20:23:13 +01:00
Windel Bouwman
983be0f944 Merge pull request #725 from palaviv/frozen-set-2
frozenset
2019-03-25 19:54:52 +01:00
Windel Bouwman
e47032f9e4 Merge pull request #749 from adrian17/tests-cleanup
Tests cleanups
2019-03-25 19:38:11 +01:00
Adrian Wielgosik
2131a8130c Clean up some tests 2019-03-25 17:59:51 +01:00
Adrian Wielgosik
16e04cf298 Run rustpython tests without cargo middleman 2019-03-25 17:54:04 +01:00
Adrian Wielgosik
4ab59a8e4c Do not run benchmarks in the main test suite 2019-03-25 17:53:13 +01:00
Adrian Wielgosik
e44b02b88f Avoid trace log in tests 2019-03-25 17:52:37 +01:00
Adam
9989795141 Merge pull request #742 from RustPython/emoji-support
Doing what is needed for all our non-latin friends.
2019-03-25 10:39:09 +00:00
Windel Bouwman
ca11e7dea7 Add support for emoji as name. 2019-03-24 20:16:38 +01:00
Joey
0409e8197b Merge pull request #744 from RustPython/joey/range-new-style
Convert range to new args style
2019-03-24 11:49:34 -07:00
Joey
f2d562a4cc pyint: use as_bigint() everywhere 2019-03-24 10:05:25 -07:00
Joey
9a0113deed range: represent w/ int refs 2019-03-24 09:59:06 -07:00
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
Joey
9d78fa5df2 Merge pull request #719 from adrian17/type-subclasses
Type __subclasses__()
2019-03-24 08:22:11 -07:00
coolreader18
6450612bdf Merge branch 'master' into coolreader18/wasm-browser-dom 2019-03-24 08:54:51 -05:00
Windel Bouwman
d0c4fcb2fa Doing what is needed for all our non-latin friends. 2019-03-24 13:14:38 +01: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
ben
3f363585e8 Panic if value poped of stack isn't a code object. 2019-03-24 16:08:17 +13:00
Joey
5441f3f89c Merge pull request #739 from RustPython/joey/range-getitem-either
Introduce Either extractor and convert range.__getitem__
2019-03-23 19:10:37 -07: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
3c15d892c5 Avoid some cloning 2019-03-23 15:57:06 -07:00
Joey
e5066da94e Merge remote-tracking branch 'origin/master' into joey/range-getitem-either 2019-03-23 15:50:12 -07:00
Joey
b6f1ecdb4b Fix example 2019-03-23 15:49:31 -07:00
Joey
a1560103ea Merge pull request #737 from skinny121/object_type_pyclassref
Change PyObject.typ to PyClassRef
2019-03-23 15:41:19 -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
00540dec35 Fix wasm, to reflect that PyObject.typ is now a PyClassRef 2019-03-24 10:51:52 +13:00
ben
6fa059fd6c Make PyObject.typ a PyClassRef 2019-03-24 10:51:52 +13:00
Joey
4666a09b20 Merge pull request #735 from RustPython/joey/range-cleanup
Range cleanups
2019-03-23 14:35:18 -07:00
Aviv Palivoda
590b659548 Change validate_set_or_frozenset to a function 2019-03-23 23:24:57 +02:00
Joey
da3dfa6c03 Merge pull request #734 from RustPython/joey/socket-cleanup
Some socket and io cleanups
2019-03-23 14:18:14 -07:00
Joey
3177824474 Fix test- 2019-03-23 12:57:17 -07:00
Joey
18ed00a653 Range cleanups 2019-03-23 12:48:37 -07:00
Joey
e4e7da3d54 Some socket cleanups 2019-03-23 12:21:55 -07:00
coolreader18
cecc2e1835 Merge pull request #732 from palaviv/super-classmethod
Support classmethod super
2019-03-23 14:17:06 -05:00
coolreader18
0aabe88c5d Put browser class methods into impl blocks 2019-03-23 14:04:14 -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