Commit Graph

1928 Commits

Author SHA1 Message Date
Adam Kelly
9eeeeeae48 Change return type of vm.to_repr and vm.to_str to PyStringRef. 2019-03-16 09:42:54 +00:00
Adam Kelly
2f5c3ef1df Use PyStringRef to check type of dictionary keys. 2019-03-16 09:42:54 +00:00
Adam Kelly
a718a5a723 Refactor dict methods to new style declarations. 2019-03-16 09:42:54 +00:00
Adam Kelly
da6c56a001 Use extend_class in declaration of dictionary. 2019-03-16 09:22:02 +00:00
Windel Bouwman
7a4d653268 Merge pull request #679 from RustPython/joey/vm-not-pycontext
Make it possible to implement PyValue in stdlib
2019-03-15 19:23:39 +01:00
Windel Bouwman
bbe2704678 Merge pull request #684 from palaviv/selenium
Selenium tests for WASM
2019-03-15 19:19:03 +01:00
Windel Bouwman
ca47ddc02c Merge pull request #672 from coolreader18/wasm-vm-exec_single
Use compile::Mode::Single for the demo terminal
2019-03-15 19:10:25 +01:00
Aviv Palivoda
abb4d41e5b Add selenium test to travis 2019-03-15 17:24:34 +02:00
coolreader18
5b5d3e789a Merge branch 'coolreader18/wasm-remove-hashmap-rcs' 2019-03-15 07:25:43 -05:00
Aviv Palivoda
f281aab721 Move selenium test to wasm folder 2019-03-15 10:01:10 +02:00
Aviv Palivoda
3d95b70e0f Add selenium test for wasm 2019-03-15 09:13:55 +02:00
Joey
976afeda31 Add helper for obtaining class from module 2019-03-14 23:08:07 -07:00
Joey
fa9e48a5b3 Take &mut VirtualMachine insteadof &PyContext 2019-03-14 21:43:19 -07:00
Joey
737ec12fa5 Rename PyValue::{required_type => class} 2019-03-14 20:08:41 -07:00
coolreader18
a1e0c03a34 Merge pull request #670 from coolreader18/pyvaluepayload
Add PyObjectPayload trait and use it for PyObject.payload
2019-03-14 21:05:55 -05:00
coolreader18
8c1f18157d Remove leftover trace from debugging 2019-03-14 20:41:23 -05:00
coolreader18
f093aa4d6a Merge branch 'master' into pyvaluepayload 2019-03-14 20:25:51 -05:00
coolreader18
d7299bac99 Remove the Rcs around the WASM global HashMaps 2019-03-14 18:13:26 -05:00
coolreader18
2af998ea86 Prevent recursion for Debug impls 2019-03-14 17:54:38 -05:00
Adam
529da3fdfe Merge pull request #678 from RustPython/py_value_into_ref
Py value into ref
2019-03-14 16:22:46 +00:00
Joey
574be4ed3e Merge pull request #674 from RustPython/subclass_str
Fix subclasses of string. (Fixes #130)
2019-03-14 08:54:09 -07:00
Adam Kelly
b204c2b33e Add PyValue::into_ref and into_ref_with_type. 2019-03-14 09:42:40 +00:00
Adam Kelly
5b41cc4b0d Fix subclasses of string. (Fixes #130) 2019-03-14 09:06:29 +00:00
Joey
964a0410e0 Merge pull request #677 from skinny121/property
Implement property attributes and functions
2019-03-13 22:20:10 -07:00
ben
3f301bd684 Implement property attributes and functions 2019-03-14 17:19:43 +13:00
coolreader18
4b655b9ab7 Fix recursive Scope Debug impl 2019-03-13 22:49:09 -05:00
Joey
36204f29fe Merge pull request #676 from adrian17/master
Use Into<BigInt> instead of ToBigInt to avoid copies
2019-03-13 18:54:36 -07:00
Joey
b50ecf1023 Merge pull request #675 from skinny121/property_type_param
Remove type parameter from PropertyBuilder
2019-03-13 18:53:54 -07:00
Adrian Wielgosik
6b1598dbb4 Change some methods to return BigInt directly 2019-03-13 20:21:07 +01:00
Adrian Wielgosik
f647f346f2 Use Into<BigInt> instead of ToBigInt to avoid copies 2019-03-13 20:20:42 +01:00
ben
067fc0927d Remove type parameter from PropertyBuilder 2019-03-14 07:24:49 +13:00
coolreader18
913bb1438a Merge branch 'master' into wasm-vm-exec_single 2019-03-13 08:20:42 -05:00
coolreader18
6436d2cb9c fmt again 2019-03-13 08:16:41 -05:00
Windel Bouwman
8dcea92bb2 Merge pull request #654 from coolreader18/wasm-explicit-stdout
[WASM] Make setStdout arguments more explicit in what they print to
2019-03-13 12:12:14 +01:00
Windel Bouwman
f0e285d124 Merge pull request #665 from RustPython/type_mro
Type mro
2019-03-13 12:05:59 +01:00
coolreader18
df68acb36b cargo fmt 2019-03-12 23:20:17 -05:00
coolreader18
bde86d32b1 Use compile::Mode::Single for the demo terminal 2019-03-12 22:46:55 -05:00
coolreader18
fb8351c5d1 Inline some functions 2019-03-12 20:59:03 -05:00
coolreader18
7bac1285d4 Fix all the tests 2019-03-12 20:26:33 -05:00
coolreader18
f31003614a Fix wasm 2019-03-12 19:42:52 -05:00
coolreader18
d305d4f74b Clean up a bit 2019-03-12 19:06:12 -05:00
coolreader18
c0e572767e Rename PyValuePayload to PyObjectPayload 2019-03-12 18:59:43 -05:00
coolreader18
070f5aa322 Merge master into pyvaluepayload 2019-03-12 18:36:10 -05:00
coolreader18
e49d7146a0 Add PyValuePayload trait and use it for PyObject.payload 2019-03-12 18:31:59 -05:00
Joey
83788b9d3c Merge pull request #667 from adrian17/no-option-typ
Remove Option from PyObject.typ; Refactor type hierarchy initialization.
2019-03-12 15:59:04 -07:00
Joey
051b382356 Merge pull request #668 from adrian17/compile_opts
Use default opt-level for release builds.
2019-03-12 15:47:20 -07:00
Adrian Wielgosik
a8f7c80e37 Use default opt-level for release builds. 2019-03-12 22:07:24 +01:00
Adrian Wielgosik
b334689e55 Remove Option from PyObject.typ; Refactor type hierarchy initialization. 2019-03-12 21:58:03 +01:00
Windel Bouwman
3cfee902ab Merge pull request #630 from lili668668/dict_get
Implement dict.get
2019-03-12 19:59:25 +01:00
Windel Bouwman
048a9547ce Merge pull request #652 from palaviv/__import__
Add __import__
2019-03-12 19:56:04 +01:00