15 Commits (c260836beb10b1d81c98732c2b7282eb6675140a)

Author SHA1 Message Date
Damien George 2e2e404ff7 py: Allow to compile with extra warnings (sign-compare, unused-param). 10 years ago
Damien George 6837d46c1d py: Fix builtin abs so it works for bools and bignum. 10 years ago
Damien George db1e10d5ea py: Use SMALL_INT creation macro in builtin sum. 10 years ago
Paul Sokolovsky 71ebd4b7f0 py: Implement UnicodeError. 10 years ago
stijn c1832fd206 py: Add setattr builtin. 10 years ago
Damien George 81e70a88a7 py: Make REPL printing function print repr of object, not str. 10 years ago
Damien George 16677ce311 py: Be more precise about unicode type and disabled unicode behaviour. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George cd34207409 py: Can compile with -Wmissing-declarations and -Wmissing-prototypes. 10 years ago
Paul Sokolovsky ed3b20aae8 modbuiltins.c: Fix NULL vs MP_OBJ_NULL usage. 10 years ago
Paul Sokolovsky c114496641 objstr: Implement kwargs support for str.format(). 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George e37dcaafb4 py: Allow to properly disable builtin "set" object. 10 years ago
Damien George 2a3e2b9033 py: Add execfile function (from Python 2); enable in stmhal port. 10 years ago
Damien George 78d702c300 py: Allow builtins to be overridden. 10 years ago
Paul Sokolovsky 1eca32836d builtin: Reimplement __repl_print__() in terms of print(). 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George 1559a97810 py: Add builtin round function. 10 years ago
Damien George e72be1b999 py: Fix smallint modulo with negative arguments. 10 years ago
Damien George 42f3de924b py: Convert [u]int to mp_[u]int_t where appropriate. 10 years ago
Damien George 83695596ed py: Fix build error when float disabled; add test for divmod. 10 years ago
Damien George 8594ce2280 py: Implement divmod, % and proper // for floating point. 10 years ago
Damien George c7687ad7e6 py: Rename mp_builtin_id to mp_obj_id and make it public. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George 7310fd469a py: Consolidate min/max functions into one, and add key= argument. 10 years ago
Damien George 4c03b3a899 py: Implement builtin reversed() function. 10 years ago
Damien George 69c5fe1df6 py: Make a function static; replace NULL with MP_OBJ_NULL. 10 years ago
Damien George c9aa58e638 py: Improve handling of long-int overflow. 10 years ago
Paul Sokolovsky 645582fe14 py: Make id() return small int for the most common address space mapping. 10 years ago
Paul Sokolovsky cb66f41ebc py: Make print() accept "file" argument, and actually print to stream. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 9e215fa4c2 py: Make unichar_charlen() accept/return machine_uint_t. 11 years ago
Damien George e04a44e2f6 py: Small comments, name changes, use of machine_int_t. 11 years ago
Paul Sokolovsky 42a52516fe builtin: Restore bytestr compatibility. 11 years ago
Chris Angelico 9a1a4beb56 builtin: ord, chr: Unicode support. 11 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Emmanuel Blot f6932d6506 Prefix ARRAY_SIZE with micropython prefix MP_ 11 years ago
Paul Sokolovsky b4efac14cd py: Make sure getattr() works with non-interned strings (by interning them). 11 years ago
Chris Angelico daf973ae00 Change comments (mainly URLs) to no longer specifically say Python 3.3 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Paul Sokolovsky ff30666c69 py: Add basic implementation of hasattr() function. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Andrew Scheller 37067666ee Fix the builtin min() and max() functions (and add tests). 11 years ago
Damien George 6d3c5e4301 Add ARRAY_SIZE macro, and use it where possible. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 71d3112f7e py: Make built-in 'range' a class. 11 years ago
Damien George 897fe0c0d0 py: Add builtin functions bin and oct, and some tests for them. 11 years ago