- 17 Oct, 2015 1 commit
-
-
Damien George authored
Only available when MICROPY_CAN_OVERRIDE_BUILTINS is enabled.
-
- 12 Oct, 2015 1 commit
-
-
Damien George authored
-
- 06 Oct, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 03 Sep, 2015 1 commit
-
-
Paul Sokolovsky authored
-
- 19 Aug, 2015 1 commit
-
-
Paul Sokolovsky authored
Saves 320 bytes on x86.
-
- 13 Aug, 2015 1 commit
-
-
blmorris authored
-
- 20 Jul, 2015 1 commit
-
-
Damien George authored
This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the number of bytes used for a qstr hash. It was originally fixed at 2 bytes, and now defaults to 2 bytes. Setting it to 1 byte will save ROM and RAM at a small expense of hash collisions.
-
- 04 Jul, 2015 1 commit
-
-
Galen Hazelwood authored
-
- 02 Jul, 2015 1 commit
-
-
Daniel Campora authored
The TimeoutError is useful for some modules, specially the the socket module. TimeoutError can then be alised to socket.timeout and then Python code can differentiate between socket.error and socket.timeout.
-
- 24 May, 2015 1 commit
-
-
Damien George authored
It's configurable and only enabled for stmhal port.
-
- 21 May, 2015 1 commit
-
-
Daniel Campora authored
-
- 20 May, 2015 1 commit
-
-
Dave Hylands authored
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
-
- 04 May, 2015 4 commits
-
-
Paul Sokolovsky authored
From https://docs.python.org/3/library/constants.html#NotImplemented : "Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. Its truth value is true." Some people however appear to abuse it to mean "no value" when None is a legitimate value (don't do that).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Refactored from "stm" module, provides mem8, mem16, mem32 objects with array subscript syntax.
-
- 25 Apr, 2015 1 commit
-
-
Paul Sokolovsky authored
The implementation is very basic and non-compliant and provided solely for CPython compatibility. The function itself is bad Python2 heritage, its usage is discouraged.
-
- 21 Apr, 2015 1 commit
-
-
Damien George authored
Uses attrtuple if it's enabled, otherwise just a normal tuple.
-
- 20 Apr, 2015 1 commit
-
-
Damien George authored
This fixes a long standing problem that viper code generation gave terrible error messages, and actually no errors on pyboard where assertions are disabled. Now all compile-time errors are raised as proper Python exceptions, and are of type ViperTypeError. Addresses issue #940.
-
- 04 Apr, 2015 1 commit
-
-
Damien George authored
Without this patch deleting a property, or class with descriptor, will call the setter with a NULL value and lead to a crash.
-
- 03 Apr, 2015 1 commit
-
-
Paul Sokolovsky authored
splitlines() occurs ~179 times in CPython3 standard library, so was deemed worthy to implement. The method has subtle semantic differences from just .split("\n"). It is also defined as working for any end-of-line combination, but this is currently not implemented - it works only with LF line-endings (which should be OK for text strings on any platforms, but not OK for bytes).
-
- 30 Mar, 2015 1 commit
-
-
Paul Sokolovsky authored
Conditional on MICROPY_PY_ALL_SPECIAL_METHODS.
-
- 26 Mar, 2015 1 commit
-
-
stijn authored
Disabled by default. Enabled on unix and windows ports.
-
- 20 Mar, 2015 1 commit
-
-
Paul Sokolovsky authored
Given that there's already support for "fixed table" maps, which are essentially ordered maps, the implementation of OrderedDict just extends "fixed table" maps by adding an "is ordered" flag and add/remove operations, and reuses 95% of objdict code, just making methods tolerant to both dict and OrderedDict. Some things are missing so far, like CPython-compatible repr and comparison. OrderedDict is Disabled by default; enabled on unix and stmhal ports.
-
- 11 Mar, 2015 1 commit
-
-
Peter D. Gray authored
-
- 23 Feb, 2015 1 commit
-
-
Paul Sokolovsky authored
Still too shy to implement UnicodeEncodeError which was really needed for micropython-lib case.
-
- 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
-