Chris Angelico
bc990dad9a
Revert "Add PEP 393-flags to strings and stub usage."
...
This reverts commit c239f50952 .
2014-06-08 02:10:59 +10:00
Chris Angelico
47c234584d
objstr: Record character length separately from byte length
...
CAUTION: Buggy, may crash stuff - qstr needs equivalent functionality too
2014-06-07 11:34:28 +10:00
Chris Angelico
89452be641
Update comments - now aiming for UTF-8 rather than PEP 393 strings
2014-06-07 11:34:27 +10:00
Chris Angelico
c239f50952
Add PEP 393-flags to strings and stub usage.
...
The test suite all passes, but nothing has actually been changed.
2014-06-07 11:34:27 +10:00
Damien George
f600a6a085
py: Slightly improve efficiency of mp_obj_new_str; rename str_new.
...
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 22:34:34 +01:00
Paul Sokolovsky
a47b64ae2d
objstringio: Implement io.BytesIO.
...
Done in generalized manner, allowing any stream class to be specified as
working with bytes.
2014-05-15 07:28:19 +03:00
Damien George
04b9147e15
Add license header to (almost) all files.
...
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-03 23:27:38 +01:00
Damien George
897fe0c0d0
py: Add builtin functions bin and oct, and some tests for them.
2014-04-15 22:03:55 +01:00
Paul Sokolovsky
58676fc2c7
objstr: Allow to define statically allocated str objects.
...
Similar to tuples, lists, dicts. Statically allocated strings don't have hash
computed.
2014-04-14 01:45:06 +03:00