[New-bugs-announce] [issue7249] Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6
Ryan Leslie
report at bugs.python.org
Mon Nov 2 04:50:44 CET 2009
New submission from Ryan Leslie <rylesny at gmail.com>:
py> StringIO.StringIO("foo").read(long(1))
'f'
py> io.BytesIO("foo").read(long(1))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: integer argument expected, got 'long'
This is known to cause problems when reading zip data from a BytesIO
object with zipfile. See this recent thread on comp.lang.python:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/337c1b8a48e8acae/
----------
components: Library (Lib)
messages: 94818
nosy: ryles
severity: normal
status: open
title: Consider allowing io.BytesIO sizes to be passed as 'long' in 2.6
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7249>
_______________________________________
More information about the New-bugs-announce
mailing list