[issue1023290] Conversion of longs to bytes and vice-versa.

Antoine Pitrou report at bugs.python.org
Thu Nov 26 00:58:24 CET 2009

Antoine Pitrou <pitrou at free.fr> added the comment:

The following example is strange:

+        >>> int.from_bytes([255, 0, 0], byteorder='big')
+        -65536

Isn't `signed` supposed to be False by default?
The rest looks ok.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list