- 22 Feb, 2015 1 commit
-
-
Damien George authored
The implementation of these functions is very large (order 4k) and they are rarely used, so we don't enable them by default. They are however enabled in stmhal and unix, since we have the room.
-
- 21 Feb, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 15 Feb, 2015 1 commit
-
-
Paul Sokolovsky authored
So corresponding exception can be thrown even under tight memory conditions.
-
- 14 Feb, 2015 1 commit
-
-
stijn authored
-
- 30 Jan, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 21 Jan, 2015 1 commit
-
-
Damien George authored
Addresses issue #1073.
-
- 11 Jan, 2015 2 commits
-
-
Damien George authored
This new config option sets how many fixed-number-of-bytes to use to store the length of each qstr. Previously this was hard coded to 2, but, as per issue #1056, this is considered overkill since no-one needs identifiers longer than 255 bytes. With this patch the number of bytes for the length is configurable, and defaults to 1 byte. The configuration option filters through to the makeqstrdata.py script. Code size savings going from 2 to 1 byte: - unix x64 down by 592 bytes - stmhal down by 1148 bytes - bare-arm down by 284 bytes Also has RAM savings, and will be slightly more efficient in execution.
-
Damien George authored
-
- 09 Jan, 2015 1 commit
-
-
Damien George authored
This allows to enable mem-info functions in micropython module, even if MICROPY_MEM_STATS is not enabled. In this case, you get mem_info and qstr_info but not mem_{total,current,peak}.
-
- 01 Jan, 2015 1 commit
-
-
Damien George authored
Addresses issue #1022.
-
- 19 Dec, 2014 1 commit
-
-
Damien George authored
Adds just 60 bytes to stmhal binary. Addresses issue #362.
-
- 08 Dec, 2014 1 commit
-
-
Paul Sokolovsky authored
The function is modeled after traceback.print_exception(), but unbloated, and put into existing module to save overhead on adding another module. Compliant traceback.print_exception() is intended to be implemented in micropython-lib in terms of sys.print_exception(). This change required refactoring mp_obj_print_exception() to take pfenv_t interface arguments. Addresses #751.
-
- 01 Dec, 2014 1 commit
-
-
Paul Sokolovsky authored
TODO: Merge useful functionality from modpyb too.
-
- 29 Nov, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 22 Nov, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 16 Nov, 2014 1 commit
-
-
Paul Sokolovsky authored
Also, implement for unix port.
-
- 15 Nov, 2014 1 commit
-
-
stijn authored
-
- 31 Oct, 2014 2 commits
-
-
Damien George authored
gc.enable/disable are now the same as CPython: they just control whether automatic garbage collection is enabled or not. If disabled, you can still allocate heap memory, and initiate a manual collection.
-
Damien George authored
Addresses issue #934.
-
- 25 Oct, 2014 2 commits
-
-
Damien George authored
This allows to implement KeyboardInterrupt on unix, and a much safer ctrl-C in stmhal port. First ctrl-C is a soft one, with hope that VM will notice it; second ctrl-C is a hard one that kills anything (for both unix and stmhal). One needs to check for a pending exception in the VM only for jump opcodes. Others can't produce an infinite loop (infinite recursion is caught by stack check).
-
Damien George authored
This should be pretty compliant with CPython, except perhaps for some corner cases to do with globals/locals context. Addresses issue #879.
-
- 23 Oct, 2014 1 commit
-
-
Damien George authored
-
- 22 Oct, 2014 2 commits
-
-
Damien George authored
-
Damien George authored
It's purpose is for internal errors that are not catastrophic (ie not as bad as RuntimeError). Since we don't use it, we don't need it.
-
- 21 Oct, 2014 1 commit
-
-
stijn authored
This makes open() and _io.FileIO() more CPython compliant. The mode kwarg is fully iplemented. The encoding kwarg is allowed but not implemented; mainly to allow the tests to specify encoding for CPython, see #874
-
- 18 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
Also, usocket.readinto(). Known issue is that .readinto() should be available only for binary files, but micropython uses single method table for both binary and text files.
-
- 13 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 12 Oct, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 11 Oct, 2014 1 commit
-
-
- 30 Sep, 2014 1 commit
-
-
Damien George authored
In CPython IOError (and EnvironmentError) is deprecated and aliased to OSError. All modules that used to raise IOError now raise OSError (or a derived exception). In Micro Python we never used IOError (except 1 place, incorrectly) and so don't need to keep it. See http://legacy.python.org/dev/peps/pep-3151/ for background.
-
- 29 Sep, 2014 1 commit
-
-
Damien George authored
Viper can now do the following: def store(p:ptr8, c:int): p[0] = c This does a store of c to the memory pointed to by p using a machine instructions inline in the code.
-
- 21 Sep, 2014 1 commit
-
-
Damien George authored
-
- 17 Sep, 2014 2 commits
-
-
Damien George authored
-
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 1 commit
-
-
Damien George authored
-
- 27 Aug, 2014 1 commit
-
-
Fabian Vogt authored
-
- 26 Aug, 2014 1 commit
-
-
Damien George authored
Addresses issue #827.
-
- 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
-