Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | objstr: Remove code duplication and unbreak Windows build. | Paul Sokolovsky | 2015-01-23 |
| | | | | | | | | There was really weird warning (promoted to error) when building Windows port. Exact cause is still unknown, but it uncovered another issue: 8-bit and unicode str_make_new implementations should be mutually exclusive, and not built at the same time. What we had is that bytes_decode() pulled 8-bit str_make_new() even for unicode build. | ||
* | objstr: Implement kwargs support for str.format(). | Paul Sokolovsky | 2015-01-04 |
| | |||
* | py: Move to guarded includes, everywhere in py/ core. | Damien George | 2015-01-01 |
| | | | | Addresses issue #1022. | ||
* | py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. | Damien George | 2014-10-03 |
| | | | | This should pretty much resolve issue #50. | ||
* | py: Simplify JSON str printing (while still conforming to JSON spec). | Damien George | 2014-09-25 |
| | | | | | The JSON specs are relatively flexible and allow us to use one function to print strings, be they ascii, bytes or utf-8 encoded. | ||
* | py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. | Damien George | 2014-08-30 |
| | | | | Part of code cleanup, working towards resolving issue #50. | ||
* | py: Remove use of int type in obj.h. | Damien George | 2014-08-30 |
| | | | | Part of code cleanup, working towards resolving issue #50. | ||
* | Change some parts of the core API to use mp_uint_t instead of uint/int. | Damien George | 2014-08-30 |
| | | | | Addressing issue #50, still some way to go yet. | ||
* | py: Change hash and len members of str from 16 bit to full word. | Damien George | 2014-08-22 |
| | | | | | This allows to make strings longer than 64k. It doesn't use any more RAM with current GC because a str object still fits in a GC block. | ||
* | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | 2014-07-03 |
| | | | | See discussion in issue #50. | ||
* | py: Small comments, name changes, use of machine_int_t. | Damien George | 2014-06-28 |
| | |||
* | objstrunicode: Refactor str_index_to_ptr() following objstr. | Paul Sokolovsky | 2014-06-27 |
| | |||
* | objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. | Paul Sokolovsky | 2014-06-27 |
| | |||
* | py: Prune unneeded code from objstrunicode, reuse code in objstr. | Paul Sokolovsky | 2014-06-27 |
| | |||
* | 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_. | ||
* | objstringio: Implement io.BytesIO. | Paul Sokolovsky | 2014-05-15 |
| | | | | | Done in generalized manner, allowing any stream class to be specified as working with bytes. | ||
* | 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: Add builtin functions bin and oct, and some tests for them. | Damien George | 2014-04-15 |
| | |||
* | objstr: Allow to define statically allocated str objects. | Paul Sokolovsky | 2014-04-14 |
Similar to tuples, lists, dicts. Statically allocated strings don't have hash computed. |