- 17 Oct, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
The failed key is available as exc.args[0], as per CPython.
-
Damien George authored
Iterables don't respond to __len__, so call __len__ on the original argument.
-
Damien George authored
-
Damien George authored
-
- 16 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Oct, 2016 1 commit
-
-
Paul Sokolovsky authored
Accepts only value of True.
-
- 14 Oct, 2016 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This includes making sure that utime_mphal's sleep_ms() and sleep_us() don't sleep on negative arguments.
-
Paul Sokolovsky authored
As long as a port implement mp_hal_sleep_ms(), mp_hal_ticks_ms(), etc. functions, it can just use standard implementations of utime.sleel_ms(), utime.ticks_ms(), etc. Python-level functions.
-
Damien George authored
Now there is just one function to allocate a new vstr, namely vstr_new (in addition to vstr_init etc). The caller of this function should know what initial size to allocate for the buffer, or at least have some policy or config option, instead of leaving it to a default (as it was before).
-
- 13 Oct, 2016 9 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
And it gives problems with header dependencies for auto-qstr generation.
-
Damien George authored
The qemu-arm port is used for testing of ARM Thumb architecture on a desktop so should have many features enabled.
-
Damien George authored
-
Alex March authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This refactors ujson.loads(s) to behave as ujson.load(StringIO(s)). Increase in code size is: 366 bytes for unix x86-64, 180 bytes for stmhal, 84 bytes for esp8266.
-
- 12 Oct, 2016 10 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Daniel Thompson authored
The boot issue text mentions a help() function and encourages the user to run it. It is very disconcerting to find that the function does not exist... Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Initial support for running on a baremetal, low-heap systems (like esp8266), using Python module interface.
-
Paul Sokolovsky authored
"Forced exit" is treated as soft-reboot (Ctrl+D). But expected effect of calling sys.exit() is termination of the current script, not any further and more serious actions like mentioned soft reboot.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Setting emit_dent=0 is unnecessary because arriving in that part of the if-logic will guarantee that emit_dent is already zero. The block to check indent_top(lex)>0 is unreachable because a newline is always inserted an the end of the input stream, and hence dedents are always processed before EOF.
-
- 11 Oct, 2016 10 commits
-
-
Damien George authored
It was a relic from the days of developing the compiler and is no longer needed, and it's impossible to trigger via a test.
-
Radomir Dopieralski authored
-
Alex March authored
-
Alex March authored
-
Radomir Dopieralski authored
As per discussion in #2449, using write requests instead of read requests for I2C.scan() seems to support a larger number of devices, especially ones that are write-only. Even a read-only I2C device has to implement writes in order to be able to receive the address of the register to read.
-
Peter Hinch authored
It contains detailed information about writing scripts to run efficiently on microcontrollers (and other constrained systems).
-
Paul Sokolovsky authored
Adds check that LZ offsets fall into the sliding dictionary used. This catches a case when uzlib.DecompIO with a smaller dictionary is used to decompress data which was compressed with a larger dictionary. Previously, this would lead to producing invalid data or crash, now an exception will be thrown.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-