- Mar 30, 2014
-
-
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
-
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).
-
- Mar 29, 2014
-
-
Paul Sokolovsky authored
Required to reraise correct exceptions in except block, regardless if more try blocks with active exceptions happen in the same except block. P.S. This "automagic reraise" appears to be quite wasteful feature of Python - we need to save pending exception just in case it *might* be reraised. Instead, programmer could explcitly capture exception to a variable using "except ... as var", and reraise that. So, consider disabling argless raise support as an optimization.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
The HID device must appear before the CDC in order for both to work at the same time. Whilst the code is working, it's not currently used.
-
Paul Sokolovsky authored
E.g. to handle currently_in_except_block restoring properly.
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
Adds readline_init() to clear readline history on soft reset. Addresses issue #387.
-
Damien George authored
The compiler allocates 7 entries on the stack for a with statement (following CPython, but probably can be reduced). This is enough for the method load and call in SETUP_WITH.
-
Damien George authored
With statement implementation
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Addresses issue #388.
-