summaryrefslogtreecommitdiff
path: root/py/objstr.c
AgeCommit message (Expand)Author
2023-05-19py/objstr: Return unsupported binop instead of raising TypeError.Damien George
2022-12-06py: Remove the word "yet" from exception messages.Damien George
2022-11-08py/objarray: Detect bytearray(str) without an encoding.Jim Mussared
2022-10-11py/objstr: Add a helper to set mp_obj_str_t data.Jim Mussared
2022-09-26py/objstr: Don't treat bytes as unicode in str.count.Jim Mussared
2022-09-19py/obj: Optimise code size and performance for make_new as a slot.Jim Mussared
2022-09-19py/obj: Convert make_new into a mp_obj_type_t slot.Jim Mussared
2022-09-19py/obj: Merge getiter and iternext mp_obj_type_t slots.Jim Mussared
2022-09-19all: Remove unnecessary locals_dict cast.Jim Mussared
2022-09-19all: Make all mp_obj_type_t defs use MP_DEFINE_CONST_OBJ_TYPE.Jim Mussared
2022-09-19all: Simplify buffer protocol to just a "get buffer" callback.Jim Mussared
2022-08-26py/objstr: Always validate utf-8 for mp_obj_new_str.Jim Mussared
2022-08-26py/objstr: Optimise mp_obj_new_str_from_vstr for known-safe strings.Jim Mussared
2022-08-26py/objstr: Always ensure mp_obj_str_from_vstr is unicode-safe.Jim Mussared
2022-08-26py/objstr: Split mp_obj_str_from_vstr into bytes/str versions.Jim Mussared
2022-08-12py/objstr: Add hex/fromhex to bytes/memoryview/bytearray.Jim Mussared
2022-08-11py/objstr: Consolidate methods for str/bytes/bytearray/array.Andrew Leech
2022-07-18py/obj: Add static safety checks to mp_obj_is_type().Yonatan Goldschmidt
2022-05-03all: Use mp_obj_malloc everywhere it's applicable.Jim Mussared
2022-01-19py/objstr: Support '{:08}'.format("Jan") like Python 3.10.Jeff Epler
2021-07-15py: Introduce and use mp_raise_type_arg helper.Damien George
2021-04-27py: Add option to compile without any error messages at all.Damien George
2020-12-07py/mpprint: Fix length calculation for strings with precision-modifier.Joris Peeraer
2020-09-24py/objstr: Make bytes(bytes_obj) return bytes_obj.Iyassou Shimels
2020-04-23all: Format code to add space after C++-style comment start.stijn
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-04-05py: Use preprocessor to detect error reporting level (terse/detailed).Jim Mussared
2020-03-11py/objstr: Remove duplicate % in error string.Tom Collins
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
2020-02-13py: Add mp_raise_msg_varg helper and use it where appropriate.Damien George
2020-01-24py/obj.h: Add and use mp_obj_is_bool() helper.Yonatan Goldschmidt
2020-01-09py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t.Damien George
2019-12-27py/objstr: Don't use inline GET_STR_DATA_LEN for object-repr D.Damien George
2019-10-22py/objstr: Size-optimise failure path for mp_obj_str_get_buffer.Jim Mussared
2019-09-26py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions.Josh Lloyd
2019-02-12py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API.Damien George
2019-02-06py: Update my copyright info on some files.Paul Sokolovsky
2018-10-22py/objstr: Make str.count() method configurable.Paul Sokolovsky
2018-09-26py/objstr: format: Return bytes result for bytes format string.Paul Sokolovsky
2018-09-20py/objstr: Make % (__mod__) formatting operator configurable.Paul Sokolovsky
2018-09-20py: Shorten error messages by using contractions and some rewording.Damien George
2018-07-30py/objstr: In format error message, use common string with %s for type.Damien George
2018-04-05py/objstr: In find/rfind, don't crash when end < start.Jeff Epler
2018-03-30py/runtime: Check that keys in dicts passed as ** args are strings.Damien George
2018-02-20py/objstr: Remove unnecessary check for positive splits variable.Damien George
2018-02-19py/objstr: Protect against creating bytes(n) with n negative.Damien George
2018-02-14py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions.Damien George
2017-11-29py: Annotate func defs with NORETURN when their corresp decls have it.Damien George
2017-11-24py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN.Damien George
2017-11-16py/objstr: When constructing str from bytes, check for existing qstr.Damien George