111 Commits (24aa81e1da6385b636cbaef364ba2c67d977b7ec)

Author SHA1 Message Date
Damien George b1229efbd1 all: Fix spelling mistakes based on codespell check. 2 years ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared a52cd5b07d py/obj: Add accessors for type slots and use everywhere. 3 years ago
Jim Mussared 3a910b1565 py/objstr: Optimise mp_obj_new_str_from_vstr for known-safe strings. 2 years ago
Jim Mussared 8a0ee5a5c0 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2 years ago
Damien George efe23aca71 all: Remove third argument to MP_REGISTER_MODULE. 2 years ago
Damien George 5956466c0e py/builtin: Clean up and simplify import_stat and builtin_open config. 2 years ago
Jim Mussared d8d3e6ae78 py: Make builtin modules use MP_REGISTER_MODULE. 3 years ago
stijn 22cf0940e1 py/modbuiltins: Add additional macro for extending builtins. 3 years ago
Damien George bb00125aaa py: Support single argument to optimised MP_OBJ_STOP_ITERATION. 3 years ago
Damien George 136369d72f all: Update to point to files in new shared/ directory. 3 years ago
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