Commit Graph

27 Commits

Author SHA1 Message Date
Adam Kelly
c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
Joey Hain
88bf2a32c4 address feedback 2019-04-03 17:30:04 -07:00
Joey Hain
98889d5339 match_class! macro 2019-04-01 20:09:45 -07:00
Joey Hain
cc4f3fdb40 Clean up TypeProtocol 2019-03-25 19:18:01 -07:00
ben
5c7812734d Use more specific ref type than PyObjectRef in PyContext 2019-03-23 13:00:12 +13:00
coolreader18
f78f558404 Fix clippy lints 2019-03-19 10:52:39 -05:00
Adam Kelly
0e23e706c9 Restructure scope to distinguish between locals and globals. 2019-03-10 12:38:43 +00:00
Adam Kelly
289c86de67 Add extend_class! macro to neaten definitions of builtins types. 2019-03-07 17:06:11 +00:00
ben
b1a070acc2 Only use real isinstance/issubclass for builtins and move the real
versions to the vm.
2019-03-04 19:55:58 +13:00
Windel Bouwman
9271115db7 Introduce py_class macro to define classes. (#589)
* Introduce py_class macro to define classes.
* rustfmt
2019-03-03 13:25:00 +00:00
ben
e30d91febc Swap naming of is{instance, subclass} <-> real_is{instance, subclass} 2019-02-28 20:32:57 +13:00
ben
52c32fab3a Call __instancecheck__ and __subclasscheck__ as part of isinstance and issubclass 2019-02-28 20:30:31 +13:00
coolreader18
fd184a1e68 Add a WASM browser module with fetch() available 2019-02-23 13:58:19 -06:00
coolreader18
955d0b3a91 Merge branch 'master' into wasm-vm-class 2019-02-22 22:53:34 -06:00
Windel Bouwman
5bd2db817f Merge pull request #516 from RustPython/joey/argcheck-objtype
Don't require objtype import to use arg_check! macro
2019-02-21 20:49:14 +01:00
Joey
eec76ef8e8 Don't require objtype import to use arg_check! macro 2019-02-21 08:38:02 -08:00
Adam Kelly
0175780cc3 py_module macro to make modules definitions more declarative. 2019-02-21 14:06:57 +00:00
Adrian Wielgosik
e016b68552 Document arg_check! macro a bit 2019-02-18 19:59:28 +01:00
coolreader18
a86069d9f2 Store the WASM id in the VirtualMachine, add a (broken) fetch builtin 2019-02-16 23:41:41 -06:00
Adrian Wielgosik
21299ecf3d Refactor arg_check macro 2019-02-13 21:05:23 +01:00
Windel Bouwman
df0400dffb Add filter and zip builtins 2018-11-07 09:41:16 +01:00
Windel Bouwman
b7a0b0f2f3 Removal of ToRust trait to prevent incorrect str representation 2018-11-02 20:27:05 +01:00
Windel Bouwman
1d854a8fbb Modify isinstance call signature to take reference to a python reference. 2018-10-27 17:58:54 +02:00
Windel Bouwman
f7cae1e9db Change signature of isinstance to take a reference to a python reference 2018-09-02 19:34:54 +02:00
Daniel Watkins
f7b43ea617 Add optional positional arguments to arg_check! 2018-08-27 09:55:21 -04:00
Daniel Watkins
8f74759129 Modify arg_check! syntax to allow expansion of option types 2018-08-27 09:55:21 -04:00
Daniel Watkins
113f9be403 Move arg_check macro to a shared module
This allows it to be used by more than just the builtins module.
2018-08-26 21:55:35 -04:00