27 Commits (56beb01724d4f0027babc5d23f016efbde4c4190)

Author SHA1 Message Date
Damien George 0528c5a22a py: In str unicode, str_subscr will never be passed a bytes object. 10 years ago
Paul Sokolovsky ac2f7a7f6a objstr: Add .splitlines() method. 10 years ago
Damien George 2e2e404ff7 py: Allow to compile with extra warnings (sign-compare, unused-param). 10 years ago
Damien George 98e3a64694 py: Remove duplicated mp_obj_str_make_new function from objstrunicode.c. 10 years ago
Paul Sokolovsky 344e15b1ae objstr: Remove code duplication and unbreak Windows build. 10 years ago
Paul Sokolovsky 6113eb2f33 objstr*: Use separate names for locals_dict of 8-bit and unicode str's. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky e62a0fe367 objstr: Allow to convert any buffer proto object to str. 10 years ago
Damien George cde0ca21bf py: Simplify JSON str printing (while still conforming to JSON spec). 10 years ago
Damien George 612045f53f py: Add native json printing using existing print framework. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 9e215fa4c2 py: Make unichar_charlen() accept/return machine_uint_t. 11 years ago
Damien George e04a44e2f6 py: Small comments, name changes, use of machine_int_t. 11 years ago
Paul Sokolovsky ea2c936c7e objstrunicode: Refactor str_index_to_ptr() following objstr. 11 years ago
Paul Sokolovsky 00c904b47a objstrunicode: Signedness issues. 11 years ago
Paul Sokolovsky 79b7fe2ee5 objstrunicode: Implement iterator. 11 years ago
Paul Sokolovsky cdc020da4b objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. 11 years ago
Paul Sokolovsky e7f2b4c875 objstrunicode: Revamp len() handling for unicode, and optimize bool(). 11 years ago
Paul Sokolovsky 86d3898e70 objstrunicode: Get rid of bytes checking, it's separate type. 11 years ago
Paul Sokolovsky 9731912ccb py: Prune unneeded code from objstrunicode, reuse code in objstr. 11 years ago
Chris Angelico 64b468d873 objstrunicode: Basic implementation of unicode handling. 11 years ago
Paul Sokolovsky 83865347db objstrunicode: Complete copy of objstr, to be patched for unicode support. 11 years ago
Paul Sokolovsky e3cfc0d33d objstr: Refactor to work with char pointers instead of indexes. 11 years ago
Paul Sokolovsky 2ec38a17d4 objstr: Be 8-bit clean even for repr(). 11 years ago
Paul Sokolovsky b4efac14cd py: Make sure getattr() works with non-interned strings (by interning them). 11 years ago
Dave Hylands b69f9fa31f Fix str.modulo when precision is specified. 11 years ago
Damien George d4c2bddd0c py: Raise TypeError when trying to format non-int with %x,%o,%X. 11 years ago
Damien George 11de8399fe py: Small changes to objstr.c, including a bug fix. 11 years ago
Paul Sokolovsky 75ce9256b2 objstr: Implement "%(key)s" % {} formatting for strings and dicts. 11 years ago
Chris Angelico 9ab8ab2117 Replace assert(0) with a self-documenting TODO string 11 years ago
Chris Angelico 4867413e69 Simplify detection of quote characters in mp_str_print_quoted. 11 years ago
Damien George fcc9cf63f1 py, str: Replace enum with actual function pointer. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Paul Sokolovsky ae9c82d5f3 objstr: str_uni_istype(): Spurious whitespace on empty lines. 11 years ago
Paul Sokolovsky f69b9d379c objstr: str_uni_istype(): Codestyle. 11 years ago
Kim Bauters a3f4b83018 add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str 11 years ago
Paul Sokolovsky 8827682b35 objstr: *strip(): If nothing is stripped, don't create dup string. 11 years ago
Paul Sokolovsky bcdffe53c6 objstr: *strip(): Fix handling of one-char subject strings. 11 years ago
Damien George f600a6a085 py: Slightly improve efficiency of mp_obj_new_str; rename str_new. 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Paul Sokolovsky 5fd5af98d0 objlist: Implement support for arbitrary (3-arg) slices. 11 years ago
Paul Sokolovsky de4b9329f9 py: Refactor slice helpers, preparing to support arbitrary slicing. 11 years ago
Paul Sokolovsky 69d081a7cf py: Handle case of slice start > stop in common sequence function. 11 years ago
Paul Sokolovsky afaaf535e6 objslice: Support arbitrary objects start, stop, and step. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago