100 Commits (85c51a548fc83d0776029b01b1be3748f82e296a)

Author SHA1 Message Date
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
Damien George 203b10703e py/modbuiltins: Fix getattr to work with class raising AttributeError. 5 years ago
stijn 70affd9ba2 all: Fix implicit floating point to integer conversions. 5 years ago
Jim Mussared def76fe4d9 all: Use MP_ERROR_TEXT for all error messages. 5 years ago
Jim Mussared a9a745e4b4 py: Use preprocessor to detect error reporting level (terse/detailed). 5 years ago
Damien George ad9a0ec8ab all: Convert exceptions to use mp_raise_XXX helpers in remaining places. 5 years ago
Damien George 69661f3343 all: Reformat C and Python source code with tools/codeformat.py. 5 years ago
Damien George ad7213d3c3 py: Add mp_raise_msg_varg helper and use it where appropriate. 5 years ago
Damien George 97eca38c4f py: Add mp_raise_type helper macro and use it where appropriate. 5 years ago
Damien George b23bd6433c py: Clean up commented-out code and comments about exception hierarchy. 5 years ago
Damien George 054dd33eba py: Downcase MP_xxx_SLOT_IS_FILLED inline functions. 6 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
stijn 42863830be py: Add optional support for 2-argument version of built-in next(). 6 years ago
Paul Sokolovsky 93f29975db py/modbuiltins: Make oct/hex work when !MICROPY_PY_BUILTINS_STR_OP_MODULO 6 years ago
Damien George 582b190764 py: Add checks for stream objects in print() and sys.print_exception(). 6 years ago
Jan Klusacek b318ebf101 py/modbuiltins: Add support for rounding integers. 7 years ago
Damien George 3678a6bdc6 py/modbuiltins: Make built-in dir support the __dir__ special method. 7 years ago
Damien George 29d28c2574 py/modbuiltins: In built-in dir make use of mp_load_method_protected. 7 years ago
Damien George 529860643b py/modbuiltins: Make built-in hasattr work properly for user types. 7 years ago
Damien George eb88803ac8 py/{modbuiltins,repl}: Start qstr probing from after empty qstr. 7 years ago
Damien George 98647e83c7 py/modbuiltins: Simplify and generalise dir() by probing qstrs. 7 years ago
Damien George e98ff40604 py/modbuiltins: Simplify casts from char to byte ptr in builtin ord. 7 years ago
Damien George 19aee9438a py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 7 years ago
Damien George 771dfb0826 py/modbuiltins: For builtin_chr, use uint8_t instead of char for array. 7 years ago
Damien George 58f00d7c0e py/modbuiltins: Use standard arg-parsing helper func for builtin print. 7 years ago
Damien George d5cf5f70fd py/modbuiltins: Slightly simplify code in builtin round(). 7 years ago
Damien George 4601759bf5 py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str. 7 years ago
Damien George 69da74e538 py/modbuiltins: Use existing utf8_get_char helper in builtin ord func. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Paul Sokolovsky 9dce823cfd py/modbuiltins: Implement abs() by dispatching to MP_UNARY_OP_ABS. 7 years ago
Damien George 0f12082f5b py,extmod,stmhal: Use "static inline" for funcs that should be inline. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Tom Collins 145796f037 py,extmod: Some casts and minor refactors to quiet compiler warnings. 7 years ago
Damien George 7bd10c1ffe py: Change mp_uint_t to size_t in builtins code. 7 years ago
Damien George 48d867b4a6 all: Make more use of mp_raise_{msg,TypeError,ValueError} helpers. 8 years ago
Damien George bc76302eab py/modbuiltins: Add core-provided version of input() function. 8 years ago
Tom Collins f06d0839bd py/modsys: update conditionals for code referencing sys.stdout 8 years ago
Damien George 6b34107537 py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg. 8 years ago
Damien George 94c41bb06f py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible. 8 years ago
Damien George c236ebfea7 py/modbuiltins: Allow round() to return a big int if necessary. 8 years ago
Damien George 125eae1ba3 py/modbuiltins: For round() builtin use nearbyint instead of round. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Nicko van Someren df0117c8ae py: Added optimised support for 3-argument calls to builtin.pow() 8 years ago
Damien George 9f04dfb568 py: Add builtin help function to core, with default help msg. 8 years ago
Damien George 7318949c46 py/modbuiltins: Remove unreachable code. 8 years ago
Damien George 5076e5c339 py: Add "delattr" builtin, conditional on MICROPY_CPYTHON_COMPAT. 8 years ago
Damien George bdb0d2d0bc py/modbuiltins: Add builtin "slice", pointing to existing slice type. 8 years ago
Paul Sokolovsky 3730090d8f py/{modbuiltins,obj}: Use MP_PYTHON_PRINTER where possible. 8 years ago
Damien George 7d0d7215d2 py: Use mp_raise_msg helper function where appropriate. 8 years ago
Damien George 93c4a6a3f7 all: Remove 'name' member from mp_obj_module_t struct. 8 years ago