[issue8401] Strange behavior of bytearray slice assignment

Eugene Kapun report at bugs.python.org
Fri Apr 16 10:13:47 CEST 2010


Eugene Kapun <abacabadabacaba at gmail.com> added the comment:

> Not really, chars are not ints
Yes, however, empty string contains exactly zero chars.
> and anyway the empty string fall in the first case.
Strings aren't mentioned in documentation of bytearray slice assignment. However, I think that bytearray constructor should accept empty string too, without an encoding, for consistency.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8401>
_______________________________________


More information about the Python-bugs-list mailing list