| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Per https://docs.python.org/3/library/functions.html#round, 2-args format
guaranteedly returns float.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Still too shy to implement UnicodeEncodeError which was really needed for
micropython-lib case.
|
| |
|
|
|
|
| |
Addresses issue #1014.
|
| |
|
|
|
|
|
|
|
|
| |
This patch allows to reuse vstr memory when creating str/bytes object.
This improves memory usage.
Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88
bytes on unix x64.
|
| |
|
| |
|
| |
|
|
|
|
| |
Addresses issue #1022.
|
|
|
|
|
|
|
|
| |
This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully
disable the builtin set object (when set to 0). This includes removing
set constructor/comprehension from the grammar, the compiler and the
emitters. Now, enabling set costs 8168 bytes on unix x64, and 3576
bytes on stmhal.
|
|
|
|
| |
Adds just 60 bytes to stmhal binary. Addresses issue #362.
|
|
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
which, when enabled, allows to override all names within the builtins
module. A builtins override dict is created the first time the user
assigns to a name in the builtins model, and then that dict is searched
first on subsequent lookups. Note that this implementation doesn't
allow deleting of names.
This patch also does some refactoring of builtins code, creating the
modbuiltins.c file.
Addresses issue #959.
|