[issue8401] Strange behavior of bytearray slice assignment
Ezio Melotti
report at bugs.python.org
Fri Apr 16 07:56:57 CEST 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
This happens because bytearray_ass_subscript() (Objects/bytearrayobject.c:588) calls PyByteArray_FromObject() (:641) that in turn calls bytearray_init() (:746), so the results are similar to the ones returned by calling bytearray(...) directly.
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8401>
_______________________________________
More information about the Python-bugs-list
mailing list