Eugene Kapun <abacabadabac...@gmail.com> added the comment: Empty string is an iterable of integers in the range 0 <= x < 256, so it should be allowed.
>>> all(isinstance(x, int) and 0 <= x < 256 for x in "") True >>> bytearray()[:] = "" Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: string argument without an encoding ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8401> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com