[issue17339] bytes() TypeError message is misleadingly narrow

Serhiy Storchaka report at bugs.python.org
Sat Apr 9 12:10:30 EDT 2016


Serhiy Storchaka added the comment:

Thank you Martin.

Interesting, int.from_bytes() accepts lists (and other iterables):

>>> int.from_bytes([1, 2, 3], "little")
197121

Is it intentional?

----------

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


More information about the Python-bugs-list mailing list