353 Commits (724ebb9916d2e29595fc2098e6ae1e7c4f1e3f52)

Author SHA1 Message Date
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
Paul Sokolovsky a47b64ae2d objstringio: Implement io.BytesIO. 11 years ago
Paul Sokolovsky 2a27365854 objstr.c: Partial implementation of .rsplit(). 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky 5ebd5f0f19 objstr: Slice indexing: support bytes properly. 11 years ago
Paul Sokolovsky bfb8819c0c objstr: Make .split() support bytes. 11 years ago
Paul Sokolovsky 5e5d69b35e objstr: Make .join() support bytes. 11 years ago
Paul Sokolovsky eea0118654 py: Give up and make mp_obj_str_get_data() deal with bytes too. 11 years ago
Paul Sokolovsky b2d4fc06fc objstr: Make *strip() accept bytes. 11 years ago
Paul Sokolovsky 69f3eb2c96 objstr: Make .[r]partition() work with bytes. 11 years ago
Paul Sokolovsky d915a52eb6 py: Fix prefix on few sequence helpers, was incorrectly "mp_". 11 years ago
Paul Sokolovsky 6913521911 objstr: Implement .lower() and .upper(). 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Paul Sokolovsky 7b0f9a7d9b bytes: Implement comparison and other binary operations. 11 years ago
Paul Sokolovsky b473d0ae86 py: bytes(), str(): Add NotImplementedError for kwargs. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky e908591baa py: Abstract no-return attribute for functions a bit. 11 years ago
Paul Sokolovsky e14d096cb7 objstr: Optimize .rstrip() by scanning string from end. 11 years ago
Paul Sokolovsky 881078403e objstr: Implement .lstrip() & .rstrip(). 11 years ago
Paul Sokolovsky 504e23388c objstr: Init hash in mp_obj_str_builder_start() to 0. 11 years ago
Damien George 57a4b4f178 py: Add typecode to buffer protocol. 11 years ago
Damien George ea8d06c39d py: Add MP_OBJ_STOP_ITERATION and make good use of it. 11 years ago
Damien George 729f7b42d6 py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 11 years ago
Damien George ee01411036 py: Add len(bytes). 11 years ago
Damien George 897fe0c0d0 py: Add builtin functions bin and oct, and some tests for them. 11 years ago
Damien George 3bb8bd899b Make USE_COMPUTED_GOTO a config option in mpconfig.h. 11 years ago
Paul Sokolovsky 58676fc2c7 objstr: Allow to define statically allocated str objects. 11 years ago
Paul Sokolovsky 59e269cfec qstr, objstr: Make sure that valid hash != 0, treat 0 as "not computed". 11 years ago