Commit Graph
271 Commits
Author SHA1 Message Date
coolreader18 801c864645 Bump WASM npm version 2019-04-21 11:30:40 -05:00
coolreader18 de3900bcad Upgrade deps 2019-04-19 15:17:03 -05:00
coolreader18 a6f3b9a5ff Add PyCallable 2019-04-19 10:14:57 -05:00
Windel Bouwman eb16f16566 Improve syntax error with line information. 2019-04-17 20:02:24 +02:00
coolreader18 a91cfd16bf Fix WASM import error 2019-04-12 14:28:26 -04:00
Adrian Wielgosik 585e6e5428 Drop IntoPyNativeFunc impl to fix Nightly/Beta breakages. 2019-04-12 19:28:09 +02:00
Adam Kelly e04275b199 Missed get_key_values_pairs removal in wasm. 2019-04-10 09:48:53 +01:00
coolreader18 422ab69b99 Use impl style classes 2019-04-08 21:50:38 -05:00
coolreader18 7ca3b77fcd Just a fn 2019-04-06 23:55:30 -05:00
coolreader18 5afc558564 Add id() method 2019-04-06 23:47:01 -05:00
coolreader18 3aeaa05f1a Merge branch 'master' into coolreader18/wasm-cleanup1 2019-04-06 10:11:07 -05:00
Adam Kelly 7b2d92f495 Delete DictProtocol. impl ItemProtocol for PyDictRef. 2019-04-06 10:15:29 +01:00
coolreader18 157204c61a Clean up the wasm crate 2019-04-05 23:24:26 -05:00
Adam Kelly ec94168a15 Remove objdict::get_key_value_pairs. 2019-04-05 16:16:55 +01:00
Adam Kelly b943f4a4bb Historic real proper dictionary support. 2019-04-05 09:50:31 +01:00
Adam Kelly 9ed051e3b7 Module Initialisation takes VirtualMachine rather than PyContext. 2019-04-05 09:50:31 +01:00
Adam Kelly c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
coolreader18 42768b20e5 Small demo improvements 2019-03-31 17:53:53 -05:00
coolreader18 b621a13415 Merge branch 'master' into coolreader18/update-deps 2019-03-27 22:32:42 -04:00
Joey Hain 625d2357bd Fix wasm 2019-03-25 19:34:24 -07:00
coolreader18 e819ca6b87 Merge branch 'master' into coolreader18/update-deps 2019-03-25 21:41:32 -04:00
coolreader18 ac2a5e281c Add comment explaining bytes -> Uint8Array conversion 2019-03-25 19:37:16 -05:00
Adam Kelly bbb7162472 Various dictionary changes.
* vm.ctx.new_dict returns a PyDictRef
* Special case for module goes away.
* Instances get a real dictionary.
2019-03-25 16:37:20 +00:00
coolreader18 565719dcda Update cargo dependencies 2019-03-24 11:26:41 -05:00
coolreader18 946103bca8 Merge branch 'master' into coolreader18/wasm-browser-dom 2019-03-23 20:12:26 -05: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
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
coolreader18 a830d8e131 Add PyDocument and PyElement 2019-03-23 09:36:15 -05:00
Adam Kelly c8bdb249b0 Remove attribute protocol from wasm. 2019-03-23 10:11:39 +00:00
ben 4e7e503785 Fix wasm build, to reflect that isinstance now takes a PyClassRef 2019-03-23 19:32:31 +13:00
ben ad584df120 Allow context.set_attr to accept PyRef values in addition to PyObjectRef 2019-03-23 19:32:31 +13:00
ben c1d5ce715f Change isinstance/issubclass to accept PyClassRef instead of PyCObject.
Also changed PyValue::class to return a PyClassRef.
2019-03-23 19:32:31 +13:00
Joey b7fa08eb36 Merge pull request #722 from RustPython/joey/unboxed-payload-2
Remove Box from PyObject
2019-03-22 20:29:36 -07:00
Joey 050bf0730e Remove HeldRcInner 2019-03-22 19:10:22 -07:00
Joey Hain 85ffde7382 Fix wasm 2019-03-22 18:37:06 -07:00
ben 5c7812734d Use more specific ref type than PyObjectRef in PyContext 2019-03-23 13:00:12 +13:00
coolreader18 8f6d8a78de Keepalive WASM webpack build 2019-03-22 13:14:08 -05:00
coolreader18 243826679c Remove unnecessary &mut 2019-03-22 01:51:44 -05:00
coolreader18 a9051ab462 Convert all &mut VirtualMachine to &VirtualMachine 2019-03-22 01:48:14 -05:00
Windel Bouwman 08520a68cf Merge pull request #700 from RustPython/coolreader18/wasm-example-npm
Change the WASM example to use rustpython from npm
2019-03-21 18:40:20 +01:00
coolreader18 ed60b19612 Use vm.{,de}serialize in rustpython_wasm 2019-03-21 00:10:02 -05:00
coolreader18 7a980b3b47 Merge branch 'master' into coolreader18/fix-wasm-import-json 2019-03-20 23:58:19 -05:00
coolreader18 de1bc937e7 Use json straight from json.rs 2019-03-19 22:20:10 -05:00
coolreader18 01bed2a051 Change the WASM example to use rustpython from npm 2019-03-19 20:54:53 -05:00
coolreader18 b30d56df29 Fix some more clippy warnings 2019-03-19 20:02:06 -05:00
Adam Kelly 6b3f61f3ca Merge branch 'master' into objdict_refactor 2019-03-19 10:19:03 +00:00
Joey 9de7285d23 Merge remote-tracking branch 'origin/master' into joey/pyobject-function-split
Conflicts:
      vm/src/frame.rs
      vm/src/obj/objbytearray.rs
      vm/src/obj/objbytes.rs
      vm/src/obj/objcomplex.rs
2019-03-16 08:37:18 -07:00
Adam Kelly 9eeeeeae48 Change return type of vm.to_repr and vm.to_str to PyStringRef. 2019-03-16 09:42:54 +00:00