Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | py: Make sure getattr() works with non-interned strings (by interning them). | Paul Sokolovsky | 2014-06-08 |
| | |||
* | Fix str.modulo when precision is specified. | Dave Hylands | 2014-06-05 |
| | |||
* | py: Raise TypeError when trying to format non-int with %x,%o,%X. | Damien George | 2014-06-05 |
| | | | | | This behaviour follows Python 3.5 standard (in 3.4 it's a DeprecationWarning which we'd rather make a TypeError). | ||
* | py: Small changes to objstr.c, including a bug fix. | Damien George | 2014-06-05 |
| | | | | | | | | | | | | | | Some small fixed: - Combine 'x' and 'X' cases in str format code. - Remove trailing spaces from some lines. - Make exception messages consistently begin with lower case (then needed to change those in objarray and objtuple so the same constant string data could be used). - Fix bug with exception message having %c instead of %%c. | ||
* | objstr: Implement "%(key)s" % {} formatting for strings and dicts. | Paul Sokolovsky | 2014-06-05 |
| | | | | | Also, make sure that args to "*" format specifiers are bounds-checked properly and don't lead for segfaults in case of mismatch. | ||
* | Replace assert(0) with a self-documenting TODO string | Chris Angelico | 2014-06-05 |
| | |||
* | Simplify detection of quote characters in mp_str_print_quoted. | Chris Angelico | 2014-06-04 |
| | | | | | Once a double quote has been found, the subsequent discovery of a single quote won't change behaviour at all, so don't bother looking for one. | ||
* | py, str: Replace enum with actual function pointer. | Damien George | 2014-06-01 |
| | | | | | | This way, it's slightly more efficient, uses less ROM (60 bytes less for stmhal), and doesn't require to raise exception if bad operation given. | ||
* | Rename bultins config variables to MICROPY_PY_BUILTINS_*. | Damien George | 2014-06-01 |
| | | | | | | | | | | This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion. | ||
* | objstr: str_uni_istype(): Spurious whitespace on empty lines. | Paul Sokolovsky | 2014-05-31 |
| | |||
* | objstr: str_uni_istype(): Codestyle. | Paul Sokolovsky | 2014-05-31 |
| | |||
* | add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str | Kim Bauters | 2014-05-31 |
| | |||
* | objstr: *strip(): If nothing is stripped, don't create dup string. | Paul Sokolovsky | 2014-05-30 |
| | |||
* | objstr: *strip(): Fix handling of one-char subject strings. | Paul Sokolovsky | 2014-05-30 |
| | |||
* | py: Slightly improve efficiency of mp_obj_new_str; rename str_new. | Damien George | 2014-05-25 |
| | | | | | | Reorder interning logic in mp_obj_new_str, to be more efficient. str_new is globally accessible, so should be prefixed with mp_obj_. | ||
* | Change const byte* to const char* where sensible. | Damien George | 2014-05-25 |
| | | | | | This removes need for some casts (at least, more than it adds need for new casts!). | ||
* | objlist: Implement support for arbitrary (3-arg) slices. | Paul Sokolovsky | 2014-05-25 |
| | |||
* | py: Refactor slice helpers, preparing to support arbitrary slicing. | Paul Sokolovsky | 2014-05-25 |
| | |||
* | py: Handle case of slice start > stop in common sequence function. | Paul Sokolovsky | 2014-05-25 |
| | |||
* | objslice: Support arbitrary objects start, stop, and step. | Paul Sokolovsky | 2014-05-25 |
| | | | | | Older int-only encoding is not expressive enough to support arbitrary slice assignment operations. | ||
* | Rename configuration variables controling Python features. | Damien George | 2014-05-24 |
| | | | | Now of the form MICROPY_PY_*. See issue #35. | ||
* | objstr: Implement .endswith(). | Paul Sokolovsky | 2014-05-24 |
| | |||
* | py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. | Damien George | 2014-05-21 |
| | | | | See issue #608 for justification. | ||
* | objstr: startswith(): Accept optional "start" arg. | Paul Sokolovsky | 2014-05-15 |
| | |||
* | py: Implement more complete bytes comparison handling. | Paul Sokolovsky | 2014-05-15 |
| | |||
* | objstringio: Implement io.BytesIO. | Paul Sokolovsky | 2014-05-15 |
| | | | | | Done in generalized manner, allowing any stream class to be specified as working with bytes. | ||
* | objstr.c: Partial implementation of .rsplit(). | Paul Sokolovsky | 2014-05-14 |
| | | | | sep=None is TODO. | ||
* | py, unix: Add copyright for modules I worked closely on. | Paul Sokolovsky | 2014-05-13 |
| | |||
* | objstr: Slice indexing: support bytes properly. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | objstr: Make .split() support bytes. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | objstr: Make .join() support bytes. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | py: Give up and make mp_obj_str_get_data() deal with bytes too. | Paul Sokolovsky | 2014-05-11 |
| | | | | | | This is not fully correct re: error handling, because we should check that that types are used consistently (only str's or only bytes), but magically makes lot of functions support bytes. | ||
* | objstr: Make *strip() accept bytes. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | objstr: Make .[r]partition() work with bytes. | Paul Sokolovsky | 2014-05-11 |
| | |||
* | py: Fix prefix on few sequence helpers, was incorrectly "mp_". | Paul Sokolovsky | 2014-05-10 |
| | |||
* | objstr: Implement .lower() and .upper(). | Paul Sokolovsky | 2014-05-10 |
| | |||
* | py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. | Damien George | 2014-05-10 |
| | |||
* | bytes: Implement comparison and other binary operations. | Paul Sokolovsky | 2014-05-10 |
| | | | | Should support everything supported by strings. | ||
* | py: bytes(), str(): Add NotImplementedError for kwargs. | Paul Sokolovsky | 2014-05-06 |
| | | | | Addresses #567. | ||
* | Add license header to (almost) all files. | Damien George | 2014-05-03 |
| | | | | | | | Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/. | ||
* | py, unix: Make "mpconfig.h" be first included, as other headers depend on it. | Paul Sokolovsky | 2014-05-02 |
| | | | | Specifically, nlr.h does. | ||
* | py: Abstract no-return attribute for functions a bit. | Paul Sokolovsky | 2014-04-30 |
| | |||
* | objstr: Optimize .rstrip() by scanning string from end. | Paul Sokolovsky | 2014-04-26 |
| | |||
* | objstr: Implement .lstrip() & .rstrip(). | Paul Sokolovsky | 2014-04-26 |
| | | | | Share code with .strip(). TODO: optimize .rstrip(). | ||
* | objstr: Init hash in mp_obj_str_builder_start() to 0. | Paul Sokolovsky | 2014-04-19 |
| | |||
* | py: Add typecode to buffer protocol. | Damien George | 2014-04-18 |
| | | | | | | | When querying an object that supports the buffer protocol, that object must now return a typecode (as per binary.[ch]). This does not have to be honoured by the caller, but can be useful for determining element size. | ||
* | py: Add MP_OBJ_STOP_ITERATION and make good use of it. | Damien George | 2014-04-17 |
| | | | | | Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API. | ||
* | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. | Damien George | 2014-04-17 |
| | | | | mp_obj_t->subscr now does load/store/delete. | ||
* | py: Add len(bytes). | Damien George | 2014-04-15 |
| | |||
* | py: Add builtin functions bin and oct, and some tests for them. | Damien George | 2014-04-15 |
| |