Commit Graph

1214 Commits

Author SHA1 Message Date
Windel Bouwman
79b4f62300 Merge pull request #642 from RustPython/joey/function-to-any
Convert function, method, builtin_*, frame, and generator to Any payload
2019-03-10 09:12:20 +01:00
Ryan Liddle
f57d2e22bf Merge pull request #649 from jaroel/context-manager-open
Make IOBase a context manager
2019-03-10 13:41:26 +11:00
Roel Bruggink
8f6257b37f Make open a context manager 2019-03-10 03:11:28 +01:00
Joey Hain
cd3ca16693 Allow functions that don't take any args 2019-03-09 16:46:29 -08:00
Joey
6eea40799b generator 2019-03-09 09:28:15 -08:00
Joey
53e4591911 frame 2019-03-09 09:28:12 -08:00
Joey
c1180fc564 builtin_function_or_method 2019-03-09 08:45:46 -08:00
Joey Hain
5a74121c76 method 2019-03-09 07:11:28 -08:00
Joey Hain
dd56d1d5a2 function 2019-03-09 07:09:53 -08:00
Joey
010969f2d2 Merge pull request #641 from RustPython/py_module_use
Use py_module at more places.
2019-03-09 07:04:43 -08:00
Joey
1444a1f98c Merge pull request #640 from RustPython/type_annotations2
Add __annotations__ attribute to functions.
2019-03-09 07:04:32 -08:00
Joey
fae776d4ae Merge pull request #638 from adrian17/tuple_list
Convert most tuple/list methods to new args style
2019-03-09 07:04:02 -08:00
Windel Bouwman
6ba5b091e9 Use py_module at more places. 2019-03-09 12:38:14 +01:00
Windel Bouwman
c1ddcbb05f Merge pull request #632 from palaviv/socket-errors
Socket OSError
2019-03-09 11:55:03 +01:00
Windel Bouwman
3f492e5a3f Add __annotations__ attribute to functions. 2019-03-09 11:48:35 +01: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
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
Adam
9a3b731894 Merge pull request #612 from RustPython/type_annotations2
Compile type annotations on function.
2019-03-08 21:34:40 +00:00
Adrian Wielgosik
10531191bb Convert most tuple/list methods to new args style 2019-03-08 20:43:20 +01:00
Windel Bouwman
502f8098b4 Change returns into return. 2019-03-08 18:51:20 +01:00
Aviv Palivoda
76c43457b5 Add more OSError exceptions to socket 2019-03-08 17:05:05 +02:00
Aviv Palivoda
de0e76baf8 socket connect and bind throws OSError with indicative error message 2019-03-08 16:43:11 +02:00
Aviv Palivoda
3fae8ccfbc Handle unknown socket kind 2019-03-08 16:19:26 +02:00
Aviv Palivoda
40c10ab70a Handle unknown address family 2019-03-08 16:16:59 +02:00
Adam Kelly
3f665ce673 Replace PyObjectPayload::Module with PyModule. 2019-03-08 08:43:07 +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
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
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 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