Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-05-30 | objstr: *strip(): Fix handling of one-char subject strings. | Paul Sokolovsky | |
2014-05-25 | py: Slightly improve efficiency of mp_obj_new_str; rename str_new. | Damien George | |
Reorder interning logic in mp_obj_new_str, to be more efficient. str_new is globally accessible, so should be prefixed with mp_obj_. | |||
2014-05-25 | Change const byte* to const char* where sensible. | Damien George | |
This removes need for some casts (at least, more than it adds need for new casts!). | |||
2014-05-25 | 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 | |
Older int-only encoding is not expressive enough to support arbitrary slice assignment operations. | |||
2014-05-24 | Rename configuration variables controling Python features. | Damien George | |
Now of the form MICROPY_PY_*. See issue #35. | |||
2014-05-24 | objstr: Implement .endswith(). | Paul Sokolovsky | |
2014-05-21 | py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. | Damien George | |
See issue #608 for justification. | |||
2014-05-15 | 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 | |
Done in generalized manner, allowing any stream class to be specified as working with bytes. | |||
2014-05-14 | objstr.c: Partial implementation of .rsplit(). | Paul Sokolovsky | |
sep=None is TODO. | |||
2014-05-13 | py, unix: Add copyright for modules I worked closely on. | Paul Sokolovsky | |
2014-05-11 | 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 | |
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. | |||
2014-05-11 | objstr: Make *strip() accept bytes. | Paul Sokolovsky | |
2014-05-11 | objstr: Make .[r]partition() work with bytes. | Paul Sokolovsky | |
2014-05-10 | 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 | |
Should support everything supported by strings. | |||
2014-05-06 | py: bytes(), str(): Add NotImplementedError for kwargs. | Paul Sokolovsky | |
Addresses #567. | |||
2014-05-03 | Add license header to (almost) all files. | Damien George | |
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/. | |||
2014-05-02 | py, unix: Make "mpconfig.h" be first included, as other headers depend on it. | Paul Sokolovsky | |
Specifically, nlr.h does. | |||
2014-04-30 | py: Abstract no-return attribute for functions a bit. | Paul Sokolovsky | |
2014-04-26 | objstr: Optimize .rstrip() by scanning string from end. | Paul Sokolovsky | |
2014-04-26 | objstr: Implement .lstrip() & .rstrip(). | Paul Sokolovsky | |
Share code with .strip(). TODO: optimize .rstrip(). | |||
2014-04-19 | objstr: Init hash in mp_obj_str_builder_start() to 0. | Paul Sokolovsky | |
2014-04-18 | py: Add typecode to buffer protocol. | Damien George | |
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. | |||
2014-04-17 | py: Add MP_OBJ_STOP_ITERATION and make good use of it. | Damien George | |
Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API. | |||
2014-04-17 | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. | Damien George | |
mp_obj_t->subscr now does load/store/delete. | |||
2014-04-15 | 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-14 | Make USE_COMPUTED_GOTO a config option in mpconfig.h. | Damien George | |
Disabled by default. Enabled in unix port. | |||
2014-04-14 | objstr: Allow to define statically allocated str objects. | Paul Sokolovsky | |
Similar to tuples, lists, dicts. Statically allocated strings don't have hash computed. | |||
2014-04-14 | qstr, objstr: Make sure that valid hash != 0, treat 0 as "not computed". | Paul Sokolovsky | |
This feature was proposed with initial hashing RFC, and is prerequisite for seamless static str object definition. | |||
2014-04-13 | py: Make bytes type hashable. | Paul Sokolovsky | |
2014-04-13 | objstr: Add str.encode() and bytes.decode() methods. | Paul Sokolovsky | |
These largely duplicate str() & bytes() constructors' functionality, but can be used to achieve Python2 compatibility. | |||
2014-04-11 | py: Simplify and improve mp_get_index. | Damien George | |
It has (again) a fast path for ints, and a simplified "slow" path for everything else. Also simplify the way str indexing is done (now matches tuple and list). | |||
2014-04-10 | objstr: Add TODO-optimize for using .join with arbitrary iterable. | Paul Sokolovsky | |
2014-04-09 | Merge branch 'str-index' of github.com:xbe/micropython into xbe-str-index | Damien George | |
2014-04-09 | py: Add mp_obj_is_integer; make mp_get_index check for long int. | Damien George | |
mp_obj_is_integer should be used to check if an object is of integral type. It returns true for bool, small int and long int. | |||
2014-04-09 | py: str.join can now take arbitrary iterable as argument. | Damien George | |
2014-04-08 | py: Implement str.[r]index() and add tests for them. | xbe | |
2014-04-08 | py: Update comment in str.replace(). | xbe | |
2014-04-08 | bytes: Support buffer protocol. | Paul Sokolovsky | |