Commit Graph

  • d972b07195 Fixed method comment Bojan 2018-11-15 23:47:11 +01:00
  • f9860d083e Moved and to use new method Bojan 2018-11-15 23:42:17 +01:00
  • 15c6328ecd Moved sub to use new method Bojan 2018-11-15 23:42:03 +01:00
  • 05d2faa227 Added call_or_unsupported to vm.rs Bojan 2018-11-15 23:37:46 +01:00
  • bbdef3d8c8 Merge pull request #194 from RustPython/wasm-doc Shing Lyu 2018-11-15 16:57:07 +01:00
  • 1a0677ab44 Updated the wasm installation instruction Shing Lyu 2018-11-15 00:22:53 +01:00
  • 2939e53717 Fixed wasm typos in README Shing Lyu 2018-11-14 22:15:52 +01:00
  • c5b6b61fba Construct PyObjectRef earlier to avoid the need for Clone on Frame. framestack Adam Kelly 2018-11-14 08:41:48 +00:00
  • ee86229ff6 Keep a stack of frames on the VM. Adam Kelly 2018-11-11 22:06:14 +00:00
  • 96c1c5a328 Use rusts internal hash algorithm. Windel Bouwman 2018-11-12 21:24:53 +01:00
  • 58b905f4df Merge pull request #182 from rmliddle/wasm-steps Windel Bouwman 2018-11-12 20:30:52 +01:00
  • 49f855219a Implement sys.getrefcount, sys.ps1, sys.ps2 and sys.getsizeof Windel Bouwman 2018-11-11 20:54:30 +01:00
  • 9cba8d2c3a Avoid crash debug logging circular dictionaries. Adam Kelly 2018-11-11 18:32:27 +00:00
  • 84ef6e3053 Add Frame.f_code. Adam Kelly 2018-11-11 18:12:30 +00:00
  • a1b7c61fcf Implement sys._getframe() to the point where we can use it to get locals. Adam Kelly 2018-11-11 17:54:30 +00:00
  • f6d7e2fc7a Update readme with badges. Windel Bouwman 2018-11-08 19:49:56 +01:00
  • 9ba9ca1cf6 Merge pull request #183 from BojanKogoj/bojan/objobject-__and__-default Windel Bouwman 2018-11-08 18:42:05 +01:00
  • ccd1534f69 Merge branch 'master' into bojan/objobject-__and__-default Bojan 2018-11-07 22:34:44 +01:00
  • e7cd83240c Changed to proper implementation in vm Bojan 2018-11-07 22:32:20 +01:00
  • c4cbedae2f Extend min builtin function to support key and default. Windel Bouwman 2018-11-07 19:25:18 +01:00
  • 99af466a88 Move max function test cases to snippet dir. Implement key and default argument on max function. Windel Bouwman 2018-11-07 17:26:18 +01:00
  • 4acea45f78 Add code and frame python objects. Windel Bouwman 2018-11-07 15:24:18 +01:00
  • df0400dffb Add filter and zip builtins Windel Bouwman 2018-11-07 09:41:16 +01:00
  • 3c4aaa0d3c Merge pull request #188 from RustPython/sub Windel Bouwman 2018-11-06 22:33:40 +01:00
  • bacaef0ec5 Make example work for sub/rsub. Still work in progress. Windel Bouwman 2018-11-06 22:13:49 +01:00
  • c69b43d13b Add frozenset class, callable function and enumerate function. Windel Bouwman 2018-11-06 21:42:42 +01:00
  • ce5bb72ed0 Minor delta on super class. Windel Bouwman 2018-11-05 20:46:32 +01:00
  • e3000e2f25 Add super object type skeleton. Windel Bouwman 2018-11-04 23:10:02 +01:00
  • 0045d74eed Merge pull request #189 from RustPython/getattr_bugfixes Windel Bouwman 2018-11-04 22:50:27 +01:00
  • a2ce4c8045 Add special case handling for __get__(None, NoneType) Adam Kelly 2018-11-04 20:11:07 +00:00
  • 7bf8378a18 type.__getattribute__ should be bound to type! Adam Kelly 2018-11-04 15:57:50 +00:00
  • a389b55ec1 Initial version of property class. Windel Bouwman 2018-11-04 17:14:07 +01:00
  • 6746784db8 Add classmethod and staticmethod classes. Windel Bouwman 2018-11-04 13:27:50 +01:00
  • 5ffb20b26e Add builtin oct function. Add weakref.ref class. Windel Bouwman 2018-11-04 12:07:53 +01:00
  • 60f29149ef Add test for class with sub and rsub. Adam Kelly 2018-11-04 10:17:07 +00:00
  • 0f0de02827 Implement __sub__/__rsub__. Adam Kelly 2018-11-04 10:07:51 +00:00
  • 8d598740d9 Add int __pos__ method Windel Bouwman 2018-11-04 09:34:54 +01:00
  • 9364902768 Add tilde unary operator in syntax. Windel Bouwman 2018-11-04 09:30:13 +01:00
  • 17fc5a2345 Implemented hexadecimal, octal and binary literals. Also use bigint in the lexer to store big integer literals. Windel Bouwman 2018-11-04 09:00:44 +01:00
  • 0a724093d0 Merge pull request #187 from RustPython/oo_fixes Windel Bouwman 2018-11-04 08:38:20 +01:00
  • ff4e8da07e Merge branch 'master' into newinit Adam Kelly 2018-11-03 22:42:40 +00:00
  • ba8990ed17 Fix check that __init__ must return None. Adam Kelly 2018-11-03 18:09:51 +00:00
  • bcdb2089d5 Add logic for inheriting metaclass from bases. Adam Kelly 2018-11-03 18:05:09 +00:00
  • 63c4f3b407 Remove unneeded extra object from bases list. Adam Kelly 2018-11-03 17:42:44 +00:00
  • 277332c168 builtin_print - separate multiple arguments with spaces. Adam Kelly 2018-11-03 17:37:40 +00:00
  • e6f0618382 Unify/simplify code-paths around __new__/__init__. Adam Kelly 2018-11-03 17:34:13 +00:00
  • 0199137fb0 Add sum builtin function. Windel Bouwman 2018-11-03 15:45:50 +01:00
  • 079905277b Add time module and improve lexer handling of numeric constants Windel Bouwman 2018-11-03 15:12:12 +01:00
  • d72abebdd0 Unify object kinds tuple and list into sequence. Windel Bouwman 2018-11-03 12:26:31 +01:00
  • b6a88cc3d5 Add test script for bytearray Windel Bouwman 2018-11-03 11:32:21 +01:00
  • 810ef7df1c Add bytearray object Windel Bouwman 2018-11-03 11:09:15 +01:00
  • a6f64eefee Change int __pow__ to use bigint pow. Windel Bouwman 2018-11-03 10:30:17 +01:00
  • 081a33f41a Merge pull request #185 from RustPython/prepare Windel Bouwman 2018-11-03 10:25:59 +01:00
  • 008c36466e Add support for __prepare__. Adam Kelly 2018-11-02 22:05:35 +00:00
  • 039b5bbbb7 Implement dict __setitem__ Windel Bouwman 2018-11-02 22:04:18 +01:00
  • 9869ef7db5 Add delattr builtin method. Windel Bouwman 2018-11-02 21:01:24 +01:00
  • b7a0b0f2f3 Removal of ToRust trait to prevent incorrect str representation Windel Bouwman 2018-11-02 20:27:05 +01:00
  • 4be2f24708 Merge pull request #184 from RustPython/metaclasses Windel Bouwman 2018-11-02 19:32:03 +01:00
  • aa10e9b589 Fix traceback printing bug. Adam Kelly 2018-11-02 17:39:40 +00:00
  • f587221401 Separate get_method (magic methods) and get_attribute (full attribute access). Adam Kelly 2018-11-02 17:12:23 +00:00
  • ac861a4629 Special cases for new, and type error on bad call. Adam Kelly 2018-11-01 20:33:00 +00:00
  • dce628dfad Simple metaclass snippet demoing call and new. Adam Kelly 2018-11-01 20:22:23 +00:00
  • ad0f8dd674 Readme changes for compliation with wasm-pack rmliddle 2018-11-02 18:17:06 +11:00
  • aa955c9ca3 Support **kwargs to __call__. Adam Kelly 2018-11-01 08:05:14 +00:00
  • 5c7b0da2f1 Magic methods aren't looked up via getattribute. Adam Kelly 2018-11-01 07:36:05 +00:00
  • 3e07c19ec4 Implement object.__getattribute__. Adam Kelly 2018-10-31 16:59:24 +00:00
  • c8e842eaab Specify metaclass and create class with correct type. Adam Kelly 2018-10-30 22:18:52 +00:00
  • 89cfdbe3dd Use __setitem__ to store elements in list. Also refactor get_elements to return a reference to the elements, not a copy. Windel Bouwman 2018-10-31 23:18:26 +01:00
  • 2aa763867c Try __sub__, next __rsub__, next give up Windel Bouwman 2018-10-31 22:02:23 +01:00
  • bddaf3e77e Implement while-else and for-else. Call __neg__ and __invert__ methods on unary operation. Windel Bouwman 2018-10-31 21:50:00 +01:00
  • cb4d66bd48 Added bit length method on int type. Windel Bouwman 2018-10-30 22:08:10 +01:00
  • f6cced5d65 Change integer type into bigint Windel Bouwman 2018-10-30 21:01:31 +01:00
  • 1e3b45ee0d Add complex basic type Windel Bouwman 2018-10-29 21:55:58 +01:00
  • 0e4d3677d9 Fixed formatting Bojan 2018-10-28 23:08:14 +01:00
  • 5053d6d167 Add bytes literal support. Windel Bouwman 2018-10-28 21:15:46 +01:00
  • 01407194de Added default __and__ Bojan 2018-10-28 21:08:28 +01:00
  • 7e1067168b Add list.extend method Windel Bouwman 2018-10-28 20:16:24 +01:00
  • e6fd9fb0a0 Add double star arguments in function calls Windel Bouwman 2018-10-28 20:05:05 +01:00
  • 3f6c716b37 Implement star expand argument in function call. Windel Bouwman 2018-10-28 19:16:21 +01:00
  • 851d263878 Merge branch 'master' of https://github.com/RustPython/RustPython Windel Bouwman 2018-10-28 14:16:15 +01:00
  • 4187a6ee39 Add support for star expanded argument in list and tuple constructions. Windel Bouwman 2018-10-28 14:16:11 +01:00
  • abe6abadf3 Merge pull request #181 from BojanKogoj/bojan/objfloat-__ge__ Windel Bouwman 2018-10-28 13:35:26 +01:00
  • 6190914540 Merge pull request #176 from cauebs/master Windel Bouwman 2018-10-28 13:33:24 +01:00
  • 1974cbe691 Refactor frame to be able to handle errors more easily. Windel Bouwman 2018-10-28 11:51:29 +01:00
  • 27b5796b92 formatting fixes rmliddle 2018-10-28 13:30:18 +11:00
  • 958ee94bdc HTML update rmliddle 2018-10-28 13:25:36 +11:00
  • 72d53fe807 move to wasm-bindgen + supporting application rmliddle 2018-10-28 13:23:00 +11:00
  • 59417ea451 Added __ge__ to float Bojan 2018-10-28 00:36:51 +02:00
  • 1de31053e9 Fix tests for bin and hex builtin functions CauĂȘ Baasch de Souza 2018-10-27 19:33:04 -03:00
  • afea338c08 Merge branch 'master' of https://github.com/RustPython/RustPython Windel Bouwman 2018-10-28 00:26:30 +02:00
  • 1f30693718 Allow unpack in assignment of list as well as trailing comma for 1 sized tuples Windel Bouwman 2018-10-28 00:26:24 +02:00
  • e0a394d622 Merge pull request #180 from BojanKogoj/bojan/objfloat-__gt__ Windel Bouwman 2018-10-27 23:26:17 +02:00
  • ec006ae6b9 Added __gt__ to float Bojan 2018-10-27 22:45:22 +02:00
  • 57dbfd16af Merge pull request #177 from BojanKogoj/bojan/objfloat-__lt__ Windel Bouwman 2018-10-27 22:23:06 +02:00
  • a2889f10e9 Added some tests Bojan 2018-10-27 22:08:39 +02:00
  • 6df02536c8 Removed unused line Bojan 2018-10-27 21:03:40 +02:00
  • 1d854a8fbb Modify isinstance call signature to take reference to a python reference. Windel Bouwman 2018-10-27 17:58:54 +02:00
  • af1f8f9f13 Merge branch 'master' of https://github.com/RustPython/RustPython Windel Bouwman 2018-10-27 17:05:44 +02:00
  • a3a427c252 Add 'yield from' syntax Windel Bouwman 2018-10-27 17:05:22 +02:00
  • 3077d7b22c Merge branch 'master' into bojan/objfloat-__lt__ Bojan 2018-10-27 15:57:00 +02:00