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 <rep...@bugs.python.org> <http://bugs.python.org/issue12617> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com