Commit Graph

1878 Commits

Author SHA1 Message Date
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
Adam Kelly
336aa53b13 Allow IdProtocol to compare PyRef and non-PyRef. 2019-03-12 18:44:35 +00:00
Aviv Palivoda
6a3e82efd9 Fix typo 2019-03-12 20:21:59 +02:00
Adam
17082942e4 Merge pull request #666 from RustPython/pyclassref_protocols
Pyclassref protocols
2019-03-12 17:56:25 +00:00
Aviv Palivoda
2c6baacbac Return ImportError __import__ is not in builtins 2019-03-12 19:31:18 +02:00
Aviv Palivoda
e6c460fd97 Add import method to VirtualMachine 2019-03-12 18:35:15 +02:00
Adam Kelly
9f96b16624 Turn PyClass.mro into a Vec<PyClassRef> 2019-03-12 15:09:03 +00:00
Adam Kelly
3082f5faef Trivial implementations of IdProtocol and TypeProtocol for PyClassRef. 2019-03-12 13:43:30 +00:00
Tzu-Yin Hong
de2b928676 Format the code 2019-03-12 11:46:47 +08:00
Joey
a8c02105d1 Merge pull request #662 from adrian17/objint
Convert most objint functions to new args style
2019-03-11 19:39:32 -07:00
Joey
db7d736c68 Merge pull request #661 from RustPython/obj-improvements
Move classmethod and staticmethod to own files. Also use extend_class…
2019-03-11 19:34:35 -07:00
Adrian Wielgosik
e3a5ac1378 Make objint::get_value return a reference 2019-03-11 23:07:56 +01:00
Aviv Palivoda
a3823b4540 Test override __import__ 2019-03-11 22:49:55 +02:00
Adam
8ec1af52e8 Merge pull request #660 from RustPython/typetype_clean
Typetype clean
2019-03-11 20:34:26 +00:00
Aviv Palivoda
8c92636a82 Fix wasm code 2019-03-11 22:30:37 +02:00
Aviv Palivoda
87e6d8d13d Add __import__ 2019-03-11 22:29:50 +02:00
Adam Kelly
633a9b0365 Move more methods onto PyClassRef. 2019-03-11 18:58:15 +00:00
Adam Kelly
1e39512e74 Convert _mro to iterator. 2019-03-11 18:58:15 +00:00
Windel Bouwman
3d306fc3e4 Merge pull request #655 from coolreader18/mandelbrot-snippet-generator
Use a generator for the mandelbrot demo snippet
2019-03-11 19:42:17 +01: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
Adam Kelly
3711881a60 Add type_pyref() to TypeProtocol. 2019-03-11 17:42:28 +00:00
coolreader18
482025045f Rearrange mandelbrot.py 2019-03-11 12:17:34 -05:00
coolreader18
31c6df31dc Okay now it works without browser 2019-03-11 12:14:37 -05:00
coolreader18
5ab41f9c54 Make mandelbrot.py work without browser module 2019-03-11 11:59:17 -05: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
Joey
dfb24d7f11 Merge pull request #657 from skinny121/attribute_error
Use new_attribute_error in more places
2019-03-10 22:13:38 -07:00
ben
65c26a1f1b Use new_attribute_error in more places 2019-03-11 17:38:19 +13:00
Joey
a48340d591 Merge pull request #651 from RustPython/make_module_not_mk_module
Rename mk_module to make_module.
2019-03-10 21:25:31 -07:00
Joey Hain
2449c12bf9 Merge remote-tracking branch 'origin/master' into make_module_not_mk_module
Conflicts:
      vm/src/stdlib/weakref.rs
2019-03-10 20:43:11 -07:00
Joey Hain
053ceb1a30 Move payload boxing into PyObject::new 2019-03-10 20:19:28 -07:00
Joey
cf659b80c0 Merge pull request #656 from adrian17/master
Support index in list.pop()
2019-03-10 17:17:50 -07:00
Adrian Wielgosik
b123e58c55 Support index in list.pop() 2019-03-11 00:31:26 +01:00
coolreader18
40ef62db70 Use a generator for the mandelbrot demo snippet 2019-03-10 17:42:39 -05:00
Joey Hain
4510489bba Fix PyObjectPayload usage in wasm 2019-03-10 15:19:04 -07: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
Joey
8143adc837 Merge pull request #636 from skinny121/weakref_type
Move weakref object type to obj module
2019-03-10 12:57:04 -07:00