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

STINNER Victor report at bugs.python.org
Tue Apr 8 11:39:25 CEST 2014


STINNER Victor added the comment:

"Perhaps we should just use closed intervals of the form [0, 255] everywhere."

I only saw range(0, 256) in Python. At school, I used [0, 255]. I prefer [0, 255] syntax, it's more explicit :-)

----------

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


More information about the Python-bugs-list mailing list