- 17 May, 2015 13 commits
-
-
Kaspar Schleiser authored
-
Kaspar Schleiser authored
ISO C forbids conversion between function pointers and void*, gcc -pedantic triggers a warning.
-
Damien George authored
Background: trying to make an amalgamation of all the code gave some errors with redefined types and inconsistent use of static.
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
Can be enabled by defining MICROPY_PORT_WLAN_URN=1 in mpconfigport.h.
-
Daniel Campora authored
-
Daniel Campora authored
When entering the interrupt handler of a given GPIO port, more than one pin could have pending interrupts, therefore care must be taken to service each interrupt one by one before leaving.
-
Daniel Campora authored
-
Daniel Campora authored
-
Daniel Campora authored
-
Paul Sokolovsky authored
This reverts commit 8fbabab1. Turned to cause problems on MacOSX.
-
- 16 May, 2015 1 commit
-
-
Damien George authored
-
- 13 May, 2015 8 commits
-
-
stijn authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Addresses issue #1255.
-
Josef Gajdusek authored
-
Josef Gajdusek authored
-
stijn authored
-
Damien George authored
With newer versions of esp_iot_sdk the iram1_0_seg started to overflow. Now it doesn't. Addresses issue #1254.
-
- 12 May, 2015 10 commits
-
-
Damien George authored
-
Josef Gajdusek authored
-
Josef Gajdusek authored
Moved modesp.o to flash and increased size of the irom0_0_seg segment. The new value was taken from NodeMCU linker script.
-
Josef Gajdusek authored
-
Josef Gajdusek authored
-
Steve Zatz authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
mp_obj_get_int_truncated will raise a TypeError if the argument is not an integral type. Use mp_obj_int_get_truncated only when you know the argument is a small or big int.
-
Damien George authored
Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as the operator argument. Hashing for int, str and bytes still go via fast-path in mp_unary_op since they are the most common objects which need to be hashed. This lead to quite a bit of code cleanup, and should be more efficient if anything. It saves 176 bytes code space on Thumb2, and 360 bytes on x86. The only loss is that the error message "unhashable type" is now the more generic "unsupported type for __hash__".
-
- 11 May, 2015 4 commits
-
-
Paul Sokolovsky authored
I.e. in bytecode Python functions.
-
Paul Sokolovsky authored
Unfortunately, MP_OBJ_STOP_ITERATION doesn't have means to pass an associated value, so we can't optimize StopIteration exception with (non-None) argument to MP_OBJ_STOP_ITERATION.
-
Paul Sokolovsky authored
MP_OBJ_STOP_ITERATION is equivalent of raising StopIteration, except mp_vm_return_kind_t for it is "yield".
-
blmorris authored
-
- 10 May, 2015 2 commits
-
-
Paul Sokolovsky authored
When generator raises exception, it is automatically terminated (by setting its code_state.ip to 0), which interferes with this check. Triggered in particular by CPython's test_pep380.py.
-
Paul Sokolovsky authored
-
- 09 May, 2015 2 commits
-
-
Paul Sokolovsky authored
Exceptions in .close() should be ignored (dumped to sys.stderr, not propagated), but in uPy, they are propagated. Fix would require nlr-wrapping .close() call, which is expensive. Bu on the other hand, .close() is not called often, so maybe that's not too bad (depends, if it's finally called and that causes stack overflow, there's nothing good in that). And yet on another hand, .close() can be implemented to catch exceptions on its side, and that should be the right choice.
-
Paul Sokolovsky authored
-