[issue21177] ValueError: byte must be in range(0, 256)

STINNER Victor report at bugs.python.org
Fri Apr 11 15:24:02 CEST 2014


STINNER Victor added the comment:

I suggested "must be in the range [0; 255]" which is not a valid Python
list: ";" is the instruction operator and there is "range" word in front of
the "list". In my opinion, it's much easier to read and understand it.

Another example is the Unicode range(0x110000). "range [0; 0x10ffff]" would
be better. Or maybe "must be in the range U+0000-U+10ffff" but it requires
to know the Unicode U+HHHH syntax and the input type may be int, not a
character.

----------

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


More information about the Python-bugs-list mailing list