Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | tests/basics: Move str/bytes tests that give SyntaxWarning to sep file. | Damien George | 2024-05-28 |
| | | | | | | | In CPython 3.12 these invalid str/bytes/fstring escapes will issue a SyntaxWarning, and so differ to MicroPython. Signed-off-by: Damien George <damien@micropython.org> | ||
* | py/objstr: Protect against creating bytes(n) with n negative. | Damien George | 2018-02-19 |
| | | | | | | | | | Prior to this patch uPy (on a 32-bit arch) would have severe issues when calling bytes(-1): such a call would call vstr_init_len(vstr, -1) which would then +1 on the len and call vstr_init(vstr, 0), which would then round this up and allocate a small amount of memory for the vstr. The bytes constructor would then attempt to zero out all this memory, thinking it had allocated 2^32-1 bytes. | ||
* | py/objstr: Make empty bytes object have a null-terminating byte. | Damien George | 2017-10-04 |
| | | | | | | | Because a lot of string processing functions assume there is a null terminating byte, so they can work in an efficient way. Fixes issue #3334. | ||
* | tests: Add tests to exercise lexer; and some more complex number tests. | Damien George | 2015-04-04 |
| | |||
* | tests: Add some more tests for bytes, bignum, string and ujson. | Damien George | 2015-03-14 |
| | |||
* | tests: Add testcase for bytes() on values in range 128-255. | Paul Sokolovsky | 2015-01-28 |
| | |||
* | tests: Fix uctypes tests to run on 64bit arch; enable more native tests. | Damien George | 2014-09-23 |
| | |||
* | objstr: Make sure that bytes are indexed as bytes, not as unicode. | Paul Sokolovsky | 2014-08-11 |
| | | | | Fixes #795. | ||
* | py: Make 'bytes' be a proper type, support standard constructor args. | Paul Sokolovsky | 2014-03-22 |
| | |||
* | Add basic implementation of bytes type, piggybacking on str. | Paul Sokolovsky | 2014-01-24 |
This reuses as much str implementation as possible, from this we can make them more separate as needed. |