[docs] [issue12617] Mutable Sequence Type can work not only with iterable in slice[i:j] = t

Claudiu Popa report at bugs.python.org
Sat Jun 14 14:32:08 CEST 2014


Claudiu Popa added the comment:

This was fixed in the latest versions.

>>> b = bytearray(b'457')
>>> b[:1] = 4
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can assign only bytes, buffers, or iterables of ints in range(0, 256)
>>>

----------
nosy: +Claudiu.Popa
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

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


More information about the docs mailing list