- 12 Aug, 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 ```
-
- 19 Jul, 2014 1 commit
-
-
Damien George authored
With unicode enabled, this patch allows reading a fixed number of characters from text-mode streams; eg file.read(5) will read 5 unicode chars, which can made of more than 5 bytes. For an ASCII stream (ie no chars > 127) it only needs to do 1 read. If there are lots of non-ASCII chars in a stream, then it needs multiple reads of the underlying object. Adds a new test for this case. Enables unicode support by default on unix and stmhal ports.
-
- 13 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
emitnative in particular requires nlr_* to be real functions, so doesn't compile with MICROPY_NLR_SETJMP=1.
-
- 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
Unicode is disabled by default for now, since FileIO.read(n) is currently not implemented for text-mode files, and this is an often function.
-
- 20 Jun, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 08 Jun, 2014 1 commit
-
-
Damien George authored
-
- 07 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
Ports which wants to have it, should define MICROPY_PY_SYS_PLATFORM to a string value they need.
-
Marcus von Appen authored
- Move the includes for alloca() intp mpconfigport.h
-
- 05 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
As I suspected for a long time, for x86, register helper doesn't really make any difference - there's simply not enough register to keep anything in them for any prolonged time. Anything gets pushed on stack anyway. So, on x86, uPy passed all tests even with empty reg helper. So, this setjmp implementation goes as "untested".
-
- 01 Jun, 2014 1 commit
-
-
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.
-
- 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.
-
- 14 May, 2014 1 commit
-
-
Paul Sokolovsky authored
stat() is bad function to use using FFI, because its ABI is largely private. To start with, Glibc .so doesn't even have "stat" symbol. Then, layout of struct stat is too implementation-dependent. So, introduce _os to deal with stat() and other similar cases.
-
- 12 May, 2014 1 commit
-
-
stijn authored
When disabling these via mpconfigport.mk or on the commandline, the correspoding build options are not set and the sources are not built so the modules should not be added to the MICROPY_EXTRA_BUILTIN_MODULES list since they are undefined.
-
- 11 May, 2014 1 commit
-
-
Damien George authored
For consistency with MICROPY_MOD_SYS_STDFILES, etc.
-
- 10 May, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Takes 416 text bytes on x86.
-
- 07 May, 2014 1 commit
-
-
Dave Hylands authored
-
- 06 May, 2014 1 commit
-
-
Paul Sokolovsky authored
Enable only on unix. To avoid unpleasant surprises with error codes.
-
- 03 May, 2014 1 commit
-
-
Damien George authored
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
-
- 30 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 17 Apr, 2014 5 commits
-
-
Damien George authored
On stmhal, computed gotos make the binary about 1k bigger, but makes it run faster, and we have the room, so why not. All tests pass on pyboard using computed gotos.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Not all functions implemented. Not enabled on pyboard.
-
- 15 Apr, 2014 1 commit
-
-
AZ Huang authored
-
- 14 Apr, 2014 1 commit
-
-
Damien George authored
Disabled by default. Enabled in unix port.
-
- 13 Apr, 2014 2 commits
-
-
Damien George authored
Enabled by MICROPY_ENABLE_PROPERTY.
-
Paul Sokolovsky authored
-
- 05 Apr, 2014 3 commits
-
-
Damien George authored
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
-
Damien George authored
Finishes addressing issue #424. In the end this was a very neat refactor that now makes things a lot more consistent across the py code base. It allowed some simplifications in certain places, now that everything is a dict object. Also converted builtins tables to dictionaries. This will be useful when we need to turn builtins into a proper module.
-
Damien George authored
-
- 02 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
GC support for "unix" port was implemented some time ago, but still not enabled.
-