- 31 Mar, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
Adding this bytecode allows to remove 4 others related to function/method calls with * and ** support. Will also help with bytecodes that make functions/closures with default positional and keyword args.
-
Damien George authored
In preparation for implementing default keyword arguments.
-
- 30 Mar, 2014 36 commits
-
-
Paul Sokolovsky authored
"1/0" is sacred idiom, the shortest way to break program execution (sys.exit() is too long).
-
Paul Sokolovsky authored
TODO: Likely doesn't match Python semantics for negative numbers.
-
Paul Sokolovsky authored
The way it is, just crashes app. And optimizing to "raise ZeroDivisionError" is probably too much.
-
Paul Sokolovsky authored
This matches CPython behavior and hopefully can be treated as general Python semantics.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Eg class A(): pass would fail an assertion.
-
Damien George authored
-
Damien George authored
objgenerator: Handle default args to generator functions.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Iterators and ducktype objects can now be arguments of yield from.
-
Paul Sokolovsky authored
-
Damien George authored
Extends previous implementation with * for function calls to * and ** for both function and method calls.
-
Damien George authored
vm: Implement CALL_FUNCTION_VAR opcode (foo(*(1, 2, 3))).
-
Paul Sokolovsky authored
Addresses #397.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Pretty much everyone needs to include map.h, since it's such an integral part of the Micro Python object implementation. Thus, the definitions are now in obj.h instead. map.h is removed.
-
Damien George authored
Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now.
-
Damien George authored
All board config macros now begin with MICROPY_HW_. Renamed PYBv10 to PYBV10, since macros should be all uppercase. Made SDCARD_DETECT configurable in mpconfigport.h, so that the SD detect pin can be easily configured.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Caught by CPython test_pep380.py.
-
Paul Sokolovsky authored
According to PEP380 and caught by CPython test_pep380.py .
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
vm: Save current active exception on opening new try block.
-
Damien George authored
-
Damien George authored
Can now choose at boot up whether the USB device is CDC+MSC or CDC+HID. Choice is made by an option in boot.py, with default being CDC+MSC. HID+MSC is not currently supported, but should be easy to implement. Boot up now has ability to change the reset mode: hold down USR switch while booting and LEDs will count from 1 to 7 to indicate the boot mode. Release USR when correct mode is selected. Current modes are 1 (normal boot), 2 (safe mode), 3 (reset FS mode).
-