Commit Graph

1773 Commits

Author SHA1 Message Date
Adam Kelly
4a82c8fad5 Rename AttributeProtocol2 -> NameProtocol with method name changes. 2019-03-10 12:51:34 +00:00
Adam Kelly
15aaa6d3f6 Add builtin_globals. 2019-03-10 12:51:34 +00:00
Adam Kelly
372f09aaa3 Abstract rc linked list so we can just use a loop. 2019-03-10 12:38:43 +00:00
Adam Kelly
ddf4f55af7 Enable tests that now pass thanks to new scope scheme. 2019-03-10 12:38:43 +00:00
Adam Kelly
6ad528c15c Reintroduce new_scope for the common case of an empty scope. 2019-03-10 12:38:43 +00:00
Adam Kelly
0e23e706c9 Restructure scope to distinguish between locals and globals. 2019-03-10 12:38:43 +00:00
Adam
56bb6d23cc Merge pull request #634 from RustPython/joey/map-zip-filter-enumerate-to-any
Convert map, zip, filter, and enumerate to Any payload
2019-03-09 06:42:04 +00:00
Adam
3730ca2b43 Merge pull request #551 from coolreader18/store-rcs-in-stored-vm
[WASM] Keep a PyObjectWeakRef to the PyObjectRef being moved to a closure
2019-03-09 06:36:01 +00:00
Adam
9e827cfc9d Merge pull request #631 from RustPython/py_module_payload
Replace PyObjectPayload::Module with PyModule.
2019-03-09 06:33:15 +00:00
Joey Hain
a2951f8a8b enumerate 2019-03-08 18:29:58 -08:00
Joey Hain
9544a47f46 filter 2019-03-08 18:29:57 -08:00
Joey Hain
9d8bdd7012 zip 2019-03-08 18:29:51 -08:00
Joey Hain
303e19d713 map 2019-03-08 18:29:41 -08:00
coolreader18
f1b156dfbf Merge branch 'master' into store-rcs-in-stored-vm 2019-03-08 20:03:13 -06:00
Adam
9a3b731894 Merge pull request #612 from RustPython/type_annotations2
Compile type annotations on function.
2019-03-08 21:34:40 +00:00
Windel Bouwman
8362b8da80 Merge pull request #623 from RustPython/code-of-conduct
Add a code of conduct
2019-03-08 18:53:43 +01:00
Windel Bouwman
502f8098b4 Change returns into return. 2019-03-08 18:51:20 +01:00
Adam Kelly
3f665ce673 Replace PyObjectPayload::Module with PyModule. 2019-03-08 08:43:07 +00:00
Adam
0febcb9c23 Merge pull request #625 from RustPython/py_class
Add PyClass.
2019-03-08 08:10:35 +00:00
Adam
21382fadbd Merge branch 'master' into py_class 2019-03-08 08:04:23 +00:00
Adam
50de0856ff Merge pull request #627 from RustPython/joey/list-tuple-any
Convert list and tuple to Any payload
2019-03-08 07:22:42 +00:00
Adam
d44129c53c Merge pull request #629 from coolreader18/anyrustvalue-debug
Have AnyRustValue actually format with its own Debug impl
2019-03-08 06:50:55 +00:00
Adam
9b317af586 Merge pull request #628 from coolreader18/objcode-any
Convert CodeObject payload to AnyRustValue
2019-03-08 06:50:26 +00:00
Adam
406ec46ce8 Merge pull request #619 from skinny121/class_property
Fix __class__
2019-03-08 06:47:55 +00:00
Adam
62a2344ba5 Merge pull request #621 from RustPython/pynone
Pynone
2019-03-08 06:47:27 +00:00
Joey
1bcbb28715 Convert list and tuple to Any payload 2019-03-07 21:10:43 -08:00
coolreader18
87a58786af Have AnyRustValue actually format with its own Debug impl 2019-03-07 22:20:10 -06:00
coolreader18
231ab682b9 Convert CodeObject payload to AnyRustValue 2019-03-07 22:18:23 -06:00
ben
4b1cd72355 Add todo for using PyClassRef when that lands 2019-03-08 17:04:32 +13:00
Joey
3495b04e1a Merge pull request #624 from adrian17/string
Convert most remaining string methods to implicit args
2019-03-07 18:33:12 -08:00
Joey
29e902957e Merge pull request #615 from adrian17/float
Migrate PyFloat to new method style
2019-03-07 12:42:14 -08:00
Adam Kelly
e220f0a571 Add PyClass and remove old Class payload 2019-03-07 20:42:10 +00:00
Adrian Wielgosik
b81a0a16d8 Convert most remaining string methods to implicit args
Also support out-of-range start/end params for some functions.
2019-03-07 20:39:57 +01:00
Windel Bouwman
4b783b1523 Add a code of conduct 2019-03-07 20:00:02 +01:00
Adrian Wielgosik
1601da0692 Migrate PyFloat to new method style 2019-03-07 19:47:16 +01:00
Adam Kelly
995212040a Use PyInstance as the payload rather than (). 2019-03-07 18:42:46 +00:00
Adam Kelly
5b1384814c Move attributes dictionary to PyObject. 2019-03-07 18:04:02 +00:00
Adam Kelly
303f9b95a0 Add (unused) dict element to PyObject struct. 2019-03-07 18:04:02 +00:00
Adam
e0e0734524 Merge pull request #617 from RustPython/joey/int-any
Convert int to Any payload
2019-03-07 18:03:25 +00:00
Adam Kelly
488d9a5922 Merge branch 'master' into joey/int-any 2019-03-07 18:00:59 +00:00
Adam Kelly
adf473faf4 Use macro for NoneType. 2019-03-07 17:06:34 +00:00
Adam Kelly
289c86de67 Add extend_class! macro to neaten definitions of builtins types. 2019-03-07 17:06:11 +00:00
ben
f2f0f1d742 Remove debug statements 2019-03-08 06:03:13 +13:00
Adam Kelly
22811c0d56 Add PyNone and new style definition for NoneType methods. 2019-03-07 17:00:24 +00:00
Adam
ac6521564f Merge pull request #618 from RustPython/joey/optional-arg-2
Improvements to OptionalArg extractor
2019-03-07 08:22:21 +00:00
Adam
cae87f6384 Merge pull request #604 from RustPython/unit-payload
Unit payload
2019-03-07 08:17:43 +00:00
ben
720bec2f4f Convert __class__ descriptor to use new style functions 2019-03-07 20:47:31 +13:00
ben
9d03abf652 Move __class__ attribute to object to make it work in more situations 2019-03-07 20:47:31 +13:00
Joey
f9ab27296a Add conversions for all primitive ints 2019-03-06 20:38:52 -08:00
Joey
4a000c424c Improvements to OptionalArg extractor 2019-03-06 19:53:03 -08:00