316 Commits (c769da1aaa28fb0eba9fabfba84c39cbc09e23da)

Author SHA1 Message Date
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
tll 68c28174d0 py/objstr: Add check for valid UTF-8 when making a str from bytes. 7 years ago
Damien George 58321dd985 all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriate 7 years ago
Paul Sokolovsky 37379a2974 py/objstr: startswith, endswith: Check arg to be a string. 7 years ago
Javier Candeira 35a1fea90b all: Raise exceptions via mp_raise_XXX 7 years ago
Damien George 3d25d9c7d9 py/objstr: Raise an exception for wrong type on RHS of str binary op. 7 years ago
Alexander Steffen 55f33240f3 all: Use the name MicroPython consistently in comments 7 years ago
Damien George 9d2c72ad4f py/objstr: Remove unnecessary "sign" variable in formatting code. 7 years ago
Damien George 65417c5ad9 py/objstr: Move uPy function wrappers to just after the C function. 7 years ago
Damien George 326e8860ab py/objstr: Allow to compile with obj-repr D, and unicode disabled. 8 years ago
Damien George 9f85c4fe48 py/objstr: Catch case of negative "maxsplit" arg to str.rsplit(). 8 years ago
Ville Skyttä ca16c38210 various: Spelling fixes 8 years ago
Paul Sokolovsky 9a973977bb py/objstr: Use MICROPY_FULL_CHECKS for range checking when constructing bytes. 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 6213ad7f46 py: Convert mp_uint_t to size_t for tuple/list accessors. 8 years ago
Damien George c88cfe165b py: Use size_t as len argument and return type of mp_get_index. 8 years ago
stijn bf29fe2e13 py/objstr: Use better msg in bad implicit str/bytes conversion exception 8 years ago
Damien George d279bcff8a py/objstr: Fix eager optimisation of str/bytes addition. 8 years ago
Krzysztof Blazewicz 7e480e8a30 py: Use mp_obj_get_array where sequence may be a tuple or a list. 8 years ago
Damien George ae8d867586 py: Add iter_buf to getiter type method. 9 years ago
Damien George c0d9500eee py/objstr: Convert mp_uint_t to size_t (and use int) where appropriate. 8 years ago
Damien George 90ab191b65 py/objstr: Convert some instances of mp_uint_t to size_t. 8 years ago
Damien George 7317e34383 py/objstr: Give correct behaviour when passing a dict to %-formatting. 8 years ago
Paul Sokolovsky e2e663291d py/objstr: Optimize string concatenation with empty string. 8 years ago
Damien George 897129a7ff py/objstr: Remove unreachable function used only for terse error msgs. 8 years ago
Damien George 5f3bda422a py: If str/bytes hash is 0 then explicitly compute it. 8 years ago
Damien George 2196799051 py/objstr: Use mp_raise_{Type,Value}Error instead of mp_raise_msg. 8 years ago
Paul Sokolovsky c4a8004933 py: Get rid of assert() in method argument checking functions. 8 years ago
Paul Sokolovsky 9e1b61dedd py/runtime: Factor out exception raising helpers. 8 years ago
Paul Sokolovsky 1563388001 py/objstr,objstrunicode: Fix inconistent #if indentation. 8 years ago
Paul Sokolovsky 56eb25f049 py/objstr: Make .partition()/.rpartition() methods configurable. 8 years ago