281 Commits (3f3df435014cc835ce9357e15ddb8996c5866f43)

Author SHA1 Message Date
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
Damien George 5b3f0b7f39 py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George a0c97814df py: Change type of .make_new and .call args: mp_uint_t becomes size_t. 9 years ago
Damien George d4df8f4925 py/objstr: In str.format, handle case of no format spec for string arg. 9 years ago
Damien George 8212d97317 py: Use polymorphic iterator type where possible to reduce code size. 9 years ago
Paul Sokolovsky d50f649cf8 py/objstr: Applying % (format) operator to bytes should return bytes, not str. 9 years ago
Paul Sokolovsky ef63ab5724 py/objstr: Make sure that b"%s" % b"foo" uses undecorated bytes value. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Damien George c3f64d9799 py: Change qstr_* functions to use size_t as the type for str len arg. 9 years ago
Damien George 04353cc85e py: With obj repr "C", change raw str accessor from macro to function. 9 years ago
Damien George aaef1851a7 py: Add mp_obj_is_float function (macro) and use it where appropriate. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George 3a2171e406 py: Eliminate some cases which trigger unused parameter warnings. 9 years ago
Damien George 42cec5c893 py/objstr: Check for keyword args before checking for no posn args. 9 years ago
Damien George 55b11e6d38 py/objstr: For str.endswith(s, start) raise NotImpl instead of assert. 9 years ago
Damien George 821b7f22fe py: Use mp_not_implemented consistently for not implemented features. 9 years ago
Damien George e2aa117798 py/objstr: Simplify printing of bytes objects when unicode enabled. 9 years ago
Damien George 516982242d py: Inline single use of mp_obj_str_get_len in mp_obj_len_maybe. 9 years ago
Damien George 22602cc37b py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0). 9 years ago
Damien George 000730ecaa py/objstr: Simplify error handling for bad conversion specifier. 9 years ago
Damien George b648e98ad0 py/objstr: Fix error reporting for unexpected end of modulo format str. 9 years ago