Commit Graph

961 Commits

Author SHA1 Message Date
Adam Kelly
1e39512e74 Convert _mro to iterator. 2019-03-11 18:58:15 +00:00
Windel Bouwman
c00d368448 Move classmethod and staticmethod to own files. Also use extend_class more. 2019-03-11 19:38:26 +01:00
Adrian Wielgosik
4cbb1a38f1 Convert most objint functions to new args style 2019-03-11 19:20:22 +01:00
Windel Bouwman
caae69fc35 Merge pull request #658 from RustPython/mro
Cleaner type_type declaration, and faster instance checking.
2019-03-11 17:40:09 +01:00
Windel Bouwman
b8aa38db1a Merge pull request #653 from RustPython/joey/pyobject-2.0-prep
Remove PyObjectPayload enum
2019-03-11 17:33:51 +01:00
Adam Kelly
d7e1d69430 Avoid additional clone in objtype::subinstance. 2019-03-11 11:44:25 +00:00
Adam Kelly
4d779bbf98 isinstance/issubclass - avoid expensive construction of full mro. 2019-03-11 11:18:40 +00:00
Adam Kelly
7894627b9d Use extend_class in objtype. 2019-03-11 10:22:53 +00:00
ben
65c26a1f1b Use new_attribute_error in more places 2019-03-11 17:38:19 +13:00
Joey Hain
053ceb1a30 Move payload boxing into PyObject::new 2019-03-10 20:19:28 -07:00
Adrian Wielgosik
b123e58c55 Support index in list.pop() 2019-03-11 00:31:26 +01:00
Joey Hain
5971fc3bd4 rename PyObjectPayload2 to PyValue 2019-03-10 13:48:51 -07:00
Joey Hain
e2e13af7ea Remove PyObjectPayload 2019-03-10 13:45:38 -07:00
Joey Hain
45bc8c8f7a Move PyRef to pyobject module 2019-03-10 13:01:46 -07:00
ben
7c5be7d6b7 Add proper weakref type 2019-03-11 07:49:12 +13:00
Windel Bouwman
e8ec497b02 Merge pull request #637 from RustPython/scope_globals_locals
Scope globals locals
2019-03-10 17:13:03 +01:00
Chylli
e38a82e540 add __doc__ to str 2019-03-10 22:39:22 +08:00
Adam Kelly
3fbf627582 Merge branch 'master' into scope_globals_locals 2019-03-10 13:00:03 +00:00
Adam Kelly
0e23e706c9 Restructure scope to distinguish between locals and globals. 2019-03-10 12:38:43 +00:00
Adam
9e5b76c9b6 Merge pull request #635 from skinny121/property_refactor
Unify property like objects
2019-03-10 12:35:24 +00:00
Joey Hain
f6765cf16e less explicit returns 2019-03-10 00:34:21 -08:00
Joey Hain
e1d728e81f slice 2019-03-09 15:10:44 -08:00
Joey Hain
776dd80591 memoryview 2019-03-09 14:58:33 -08:00
Joey
157d18d7a1 Convert iterator 2019-03-09 14:45:55 -08:00
ben
7d01323e09 Merge branch 'master' into property_refactor
# Conflicts:
#	vm/src/function.rs
2019-03-10 09:06:21 +13: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
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
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
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
ben
0ec034df51 Change property.__new__ to use new style function and construct
PyProperty
2019-03-09 14:07:42 +13:00
ben
2edfe4c7be Migrate usage of member_descriptor and data_descriptor to
new_property/PropertyBuilder
2019-03-09 13:00:54 +13:00
ben
3fe32d0527 Merge branch 'master' into property_refactor 2019-03-09 12:13:00 +13:00
ben
5abc674737 Change property implementation to have rust payload and to use new
function style.
2019-03-09 12:11:07 +13:00
Adrian Wielgosik
10531191bb Convert most tuple/list methods to new args style 2019-03-08 20:43:20 +01: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
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
Tzu-Yin Hong
cdba098e70 Implement dict.get 2019-03-08 14:41:08 +08:00
Joey
1bcbb28715 Convert list and tuple to Any payload 2019-03-07 21:10:43 -08:00
coolreader18
231ab682b9 Convert CodeObject payload to AnyRustValue 2019-03-07 22:18:23 -06:00