353 Commits (724ebb9916d2e29595fc2098e6ae1e7c4f1e3f52)

Author SHA1 Message Date
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
Paul Sokolovsky 9dde6062cc py/objstr: Fix mix-signed comparison in str.center(). 9 years ago
Dave Hylands 6a60fb3cf4 py/objstr*: Properly ifdef str.center(). 9 years ago
Paul Sokolovsky 1b5abfcaae py/objstr: Implement str.center(). 9 years ago
Damien George cc80c4dd59 py/objstr: Make dedicated splitlines function, supporting diff newlines. 9 years ago
Paul Sokolovsky 40f0096ee7 Revert "py/objstr: .format(): Avoid call to vstr_null_terminated_str()." 9 years ago
Paul Sokolovsky 6de8dbb488 py/objstr: .format(): Avoid call to vstr_null_terminated_str(). 9 years ago
Damien George 12dd8df375 py/objstr: Binary type of str/bytes for buffer protocol is 'B'. 9 years ago
Damien George a649d72606 py/makeqstrdata: Add special case to handle \n qstr. 9 years ago
Paul Sokolovsky c38809e26b py/objarray: Implement "in" operator for bytearray. 9 years ago
Damien George 086d98cbde py/objstr: Make mp_obj_str_format_helper static. 9 years ago
Damien George 87e07ea943 py/objstr: For str.format, don't allocate on the heap for field name. 9 years ago
pohmelie e3a29de1dc py/objstr: For str.format, add nested/computed fields support. 9 years ago
Damien George 22d85ec5be py: Use new code pattern for parsing kw args with mp_arg_parse_all. 9 years ago