[issue1789] incorrect assumption about unsigned long byte size
Christopher Yeleighton
report at bugs.python.org
Wed Jan 23 10:03:50 CET 2008
Christopher Yeleighton added the comment:
Python 2.5.1 (r251:54863, Oct 5 2007, 13:50:07)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import struct
>>> g_f = open('/dev/null')
>>> struct.unpack('L', g_f.read(04))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/struct.py", line 87, in unpack
return o.unpack(s)
struct.error: unpack requires a string argument of length 8
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1789>
__________________________________
More information about the Python-bugs-list
mailing list