281 Commits (3f3df435014cc835ce9357e15ddb8996c5866f43)

Author SHA1 Message Date
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George 4d91723587 py: Remove use of int type in obj.h. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George 9c4cbe2ac0 py: Make tuple and list use mp_int_t/mp_uint_t. 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 17ae2395c2 py: Use memmove instead of memcpy when appropriate. 10 years ago
Damien George a75b02ea9b py: Improve efficiency of MP_OBJ_IS_STR_OR_BYTES. 10 years ago
Dave Hylands b7f7c655ed Make int(b'123') work properly. 10 years ago
Damien George 9b7a8ee8f1 py: Fix mult by negative number of tuple, list, str, bytes. 10 years ago
Damien George 2eb1f604ee py, objstr: Optimise bytes subscr when unicode is enabled. 10 years ago
Paul Sokolovsky 9749b2fb0d objstr: Make sure that bytes are indexed as bytes, not as unicode. 10 years ago
Paul Sokolovsky 0c5498540b objstr: split(): check arg type consistency (str vs bytes). 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 5f27a7e811 py: Add mp_obj_str_builder_end_with_len. 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 26fda6dc8e objstr: 64-bit issues. 11 years ago
Paul Sokolovsky 5048df0b7c objstr: find(), rfind(), index(): Make return value be unicode-aware. 11 years ago
Paul Sokolovsky cdc020da4b objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. 11 years ago
Paul Sokolovsky d215ee1dc1 py: Make MICROPY_PY_BUILTINS_STR_UNICODE=1 buildable. 11 years ago
Paul Sokolovsky 9731912ccb py: Prune unneeded code from objstrunicode, reuse code in objstr. 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
Paul Sokolovsky d098c6bf85 objstr: Implement .endswith(). 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Paul Sokolovsky c18ef2a9dd objstr: startswith(): Accept optional "start" arg. 11 years ago
Paul Sokolovsky 70328e419a py: Implement more complete bytes comparison handling. 11 years ago