- 13 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Oct, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
With this patch a port can enable module weak link support and provide a dict of qstr->module mapping. This mapping is looked up only if an import fails to find the requested module in the filesystem. This allows to have the builtin module named, eg, usocket, and provide a weak link of "socket" to the same module, but this weak link can be overridden if a file by the name "socket.py" is found in the import path.
-
- 11 Oct, 2014 1 commit
-
-
- 06 Oct, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 17 Sep, 2014 1 commit
-
-
Damien George authored
Also add start of ujson module with dumps implemented. Enabled in unix and stmhal ports. Test passes on both.
-
- 07 Sep, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
-
- 06 Sep, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
Type representing signed size doesn't have to be int, so use special value which defaults to SSIZE_MAX, but as it's not defined by C standard (but rather by POSIX), allow ports to set it.
-
- 03 Sep, 2014 1 commit
-
-
Fabian Vogt authored
Fixes issue #840
-
- 27 Aug, 2014 1 commit
-
-
Fabian Vogt authored
-
- 24 Aug, 2014 1 commit
-
-
Damien George authored
Because (for Thumb) a function pointer has the LSB set, pointers to dynamic functions in RAM (eg native, viper or asm functions) were not being traced by the GC. This patch is a comprehensive fix for this. Addresses issue #820.
-
- 15 Aug, 2014 1 commit
-
-
Damien George authored
Viper functions can now be annotated with the type of their arguments and return value. Eg: @micropython.viper def f(x:int) -> int: return x + 1
-
- 12 Aug, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 28 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 25 Jul, 2014 1 commit
-
-
Dave Hylands authored
The user code should call micropython.alloc_emergency_exception_buf(size) where size is the size of the buffer used to print the argument passed to the exception. With the test code from #732, and a call to micropython.alloc_emergenncy_exception_buf(100) the following error is now printed: ```python >>> import heartbeat_irq Uncaught exception in Timer(4) interrupt handler Traceback (most recent call last): File "0://heartbeat_irq.py", line 14, in heartbeat_cb NameError: name 'led' is not defined ```
-
- 09 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
-
- 03 Jul, 2014 2 commits
-
-
Paul Sokolovsky authored
Implementing it as a static constant is a bit peculiar and require cooperation from long int implementation.
-
Damien George authored
See discussion in issue #50.
-
- 28 Jun, 2014 1 commit
-
-
Damien George authored
-
- 27 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
array.array and bytearray share big deal of code, so to get real savings, both need to be disabled.
-
- 26 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Such mechanism is important to get stable Python functioning, because Python function calling is handled with C stack. The idea is to sprinkle STACK_CHECK() calls in places where there can be C recursion. TODO: Add more STACK_CHECK()'s.
-
- 21 Jun, 2014 1 commit
-
-
mux authored
* Add while(1) to assert_func to avoid func returns warning * Define a weak attr in mpconfig.h
-
- 20 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
One thing is wanting to do 1 / 2 and get something else but 0, and quite another - doing rocket science ;-).
-
- 12 Jun, 2014 1 commit
-
-
Damien George authored
-
- 11 Jun, 2014 1 commit
-
-
Damien George authored
-
- 05 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 01 Jun, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion.
-
- 25 May, 2014 1 commit
-
-
Damien George authored
This completes non-automatic interning of strings in the parser, so that doc strings don't take up RAM. It complicates the parser and compiler, and bloats stmhal by about 300 bytes. It's complicated because now there are 2 kinds of parse-nodes that can be strings: interned leaves and non-interned structs.
-
- 24 May, 2014 1 commit
-
-
Damien George authored
Now of the form MICROPY_PY_*. See issue #35.
-
- 21 May, 2014 1 commit
-
-
Damien George authored
MP_ALLOC_* -> MICROPY_ALLOC_* MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX MICROPY_EXTRA_* -> MICROPY_PORT_* See issue #35.
-
- 19 May, 2014 1 commit
-
-
Paul Sokolovsky authored
io.FileIO is binary I/O, ans actually optional. Default file type is io.TextIOWrapper, which provides str results. CPython3 explicitly describes io.TextIOWrapper as buffered I/O, but we don't have buffering support yet anyway.
-
- 15 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Done in generalized manner, allowing any stream class to be specified as working with bytes.
-
- 11 May, 2014 1 commit
-
-
Damien George authored
For consistency with MICROPY_MOD_SYS_STDFILES, etc.
-
- 10 May, 2014 2 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
-