263 Commits (92a342a0113292c93a04d04af106649bb3e51b79)

Author SHA1 Message Date
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
Damien George 7ef75f9f75 py/objstr: Fix error type for badly formatted format specifier. 9 years ago
Damien George 51b9a0d0c4 py/objstr: Make string formatting 8-bit clean. 9 years ago
Dave Hylands 9f76dcd682 py: Prevent many extra vstr allocations. 10 years ago
Paul Sokolovsky f44cc517a2 objstr: Add note that replace() is nicely optimized. 10 years ago
Damien George 79474c6b16 py: Remove unnecessary extra handling of padding of nan/inf. 10 years ago
Damien George 44e7cbf019 py: Clean up declarations of str type/funcs that are also in unicode. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Damien George ede0f3ab3d py: Add optional code to check bytes constructor values are in range. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Paul Sokolovsky 8b7faa31e1 objstr: split(None): Fix whitespace properly. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Paul Sokolovsky 7f59b4b2ca objstr: Fix bugs introduced by inability to have shadow variables. 10 years ago
Paul Sokolovsky acf6aec71c objstr: Avoid variable shadowing. 10 years ago
Paul Sokolovsky ac2f7a7f6a objstr: Add .splitlines() method. 10 years ago
Paul Sokolovsky 8705171233 objstr: Expose mp_obj_str_split() for reuse in other modules. 10 years ago
Damien George fa1edff006 py: Remove unnecessary and unused sgn argument from pfenv_print_mp_int. 10 years ago
Paul Sokolovsky 194117a066 objstr: Fix bytes creation from array of long ints. 10 years ago
Damien George 827b0f747b py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str. 10 years ago