summaryrefslogtreecommitdiffstatshomepage
path: root/py/unicode.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-27 22:16:05 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-02-27 22:17:15 +0200
commitcefcbb22b2befac1baa9953c477fcee4031635d3 (patch)
tree34a4c43587350c4f57b5ffd0a54360b4a075493f /py/unicode.c
parent0bb971370bef272aea369f0f8699dd0523b6a977 (diff)
downloadmicropython-cefcbb22b2befac1baa9953c477fcee4031635d3.tar.gz
micropython-cefcbb22b2befac1baa9953c477fcee4031635d3.zip
objarray: Implement array slice assignment.
This is rarely used feature which takes enough code to implement, so is controlled by MICROPY_PY_ARRAY_SLICE_ASSIGN config setting, default off. But otherwise it may be useful, as allows to update arbitrary-sized data buffers in-place. Slice is yet to implement, and actually, slice assignment implemented in such a way that RHS of assignment should be array of the exact same item typecode as LHS. CPython has it more relaxed, where RHS can be any sequence of compatible types (e.g. it's possible to assign list of int's to a bytearray slice). Overall, when all "slice write" features are implemented, it may cost ~1KB of code.
Diffstat (limited to 'py/unicode.c')
0 files changed, 0 insertions, 0 deletions