346 Commits (b41aaaa8a918a6645ebc6bfa4483bd17286f9263)

Author SHA1 Message Date
Jim Mussared b41aaaa8a9 py/obj: Optimise code size and performance for make_new as a slot. 2 years ago
Jim Mussared 94beeabd2e py/obj: Convert make_new into a mp_obj_type_t slot. 2 years ago
Jim Mussared 6da41b5900 py/obj: Merge getiter and iternext mp_obj_type_t slots. 2 years ago
Jim Mussared 9dce82776d all: Remove unnecessary locals_dict cast. 2 years ago
Jim Mussared 662b9761b3 all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE. 3 years ago
Jim Mussared fb2a57800a all: Simplify buffer protocol to just a "get buffer" callback. 3 years ago
Jim Mussared 6c3d8d38bf py/objstr: Always validate utf-8 for mp_obj_new_str. 2 years ago
Jim Mussared 3a910b1565 py/objstr: Optimise mp_obj_new_str_from_vstr for known-safe strings. 2 years ago
Jim Mussared 88864587f5 py/objstr: Always ensure mp_obj_str_from_vstr is unicode-safe. 2 years ago
Jim Mussared 8a0ee5a5c0 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2 years ago
Jim Mussared 28aaab9590 py/objstr: Add hex/fromhex to bytes/memoryview/bytearray. 3 years ago
Andrew Leech f7f56d4285 py/objstr: Consolidate methods for str/bytes/bytearray/array. 2 years ago
Yonatan Goldschmidt 2a6ba47110 py/obj: Add static safety checks to mp_obj_is_type(). 5 years ago
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable. 3 years ago
Jeff Epler 037b2c72a1 py/objstr: Support '{:08}'.format("Jan") like Python 3.10. 3 years ago
Damien George 38a204ed96 py: Introduce and use mp_raise_type_arg helper. 3 years ago
Damien George d4b706c4d0 py: Add option to compile without any error messages at all. 4 years ago
Joris Peeraer 5020b14d54 py/mpprint: Fix length calculation for strings with precision-modifier. 4 years ago
Iyassou Shimels ca017841d6 py/objstr: Make bytes(bytes_obj) return bytes_obj. 4 years ago
stijn 84fa3312cf all: Format code to add space after C++-style comment start. 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
Tom Collins fccf17521a py/objstr: Remove duplicate % in error string. 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
Yonatan Goldschmidt d9433d3e94 py/obj.h: Add and use mp_obj_is_bool() helper. 5 years ago
Damien George bfbd94401d py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t. 5 years ago
Damien George 4c0176d13f py/objstr: Don't use inline GET_STR_DATA_LEN for object-repr D. 5 years ago
Jim Mussared c7ae8c5a99 py/objstr: Size-optimise failure path for mp_obj_str_get_buffer. 5 years ago
Josh Lloyd 7d58a197cf py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions. 5 years ago
Damien George eee1e8841a py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API. 6 years ago
Paul Sokolovsky 8fea833e3f py: Update my copyright info on some files. 6 years ago
Paul Sokolovsky 5a91fce9f8 py/objstr: Make str.count() method configurable. 6 years ago
Paul Sokolovsky a135bca4a1 py/objstr: format: Return bytes result for bytes format string. 6 years ago
Paul Sokolovsky 2da5d41350 py/objstr: Make % (__mod__) formatting operator configurable. 6 years ago
Damien George b01f66c5f1 py: Shorten error messages by using contractions and some rewording. 6 years ago
Damien George aec6fa9160 py/objstr: In format error message, use common string with %s for type. 6 years ago
Jeff Epler d6cf5c6749 py/objstr: In find/rfind, don't crash when end < start. 7 years ago
Damien George 3280788195 py/runtime: Check that keys in dicts passed as ** args are strings. 7 years ago
Damien George 8769049e93 py/objstr: Remove unnecessary check for positive splits variable. 7 years ago
Damien George 4e469085c1 py/objstr: Protect against creating bytes(n) with n negative. 7 years ago
Damien George 19aee9438a py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. 7 years ago
Damien George 3990a52c0f py: Annotate func defs with NORETURN when their corresp decls have it. 7 years ago
Damien George 5e34a113ea py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN. 7 years ago
Damien George 8d956c26d1 py/objstr: When constructing str from bytes, check for existing qstr. 7 years ago
Damien George 1f1d5194d7 py/objstr: Make mp_obj_new_str_of_type check for existing interned qstr. 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 dfa563c71f py/objstr: Make empty bytes object have a null-terminating byte. 7 years ago
Damien George a3dc1b1957 all: Remove inclusion of internal py header files. 7 years ago
Paul Sokolovsky fc9a6dd09e py/objstr: strip: Don't strip "\0" by default. 7 years ago