summaryrefslogtreecommitdiffstatshomepage
path: root/py/modbuiltins.c
Commit message (Collapse)AuthorAge
* modbuiltins: round(): Accept second arg, and at least support it to be 0.Paul Sokolovsky2015-03-31
| | | | | Per https://docs.python.org/3/library/functions.html#round, 2-args format guaranteedly returns float.
* py: Allow to compile with extra warnings (sign-compare, unused-param).Damien George2015-03-19
|
* py: Fix builtin abs so it works for bools and bignum.Damien George2015-03-14
|
* py: Use SMALL_INT creation macro in builtin sum.Damien George2015-03-02
|
* py: Implement UnicodeError.Paul Sokolovsky2015-02-23
| | | | | Still too shy to implement UnicodeEncodeError which was really needed for micropython-lib case.
* py: Add setattr builtin.stijn2015-02-14
|
* py: Make REPL printing function print repr of object, not str.Damien George2015-01-28
| | | | Addresses issue #1014.
* py: Be more precise about unicode type and disabled unicode behaviour.Damien George2015-01-28
|
* py: Add mp_obj_new_str_from_vstr, and use it where relevant.Damien George2015-01-21
| | | | | | | | 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.
* py: Can compile with -Wmissing-declarations and -Wmissing-prototypes.Damien George2015-01-12
|
* modbuiltins.c: Fix NULL vs MP_OBJ_NULL usage.Paul Sokolovsky2015-01-04
|
* objstr: Implement kwargs support for str.format().Paul Sokolovsky2015-01-04
|
* py: Move to guarded includes, everywhere in py/ core.Damien George2015-01-01
| | | | Addresses issue #1022.
* py: Allow to properly disable builtin "set" object.Damien George2014-12-27
| | | | | | | | 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.
* py: Add execfile function (from Python 2); enable in stmhal port.Damien George2014-12-19
| | | | Adds just 60 bytes to stmhal binary. Addresses issue #362.
* py: Allow builtins to be overridden.Damien George2014-12-09
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.