This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ryles
Recipients ryles
Date 2009-11-02.03:50:42
SpamBayes Score 0.00057326024
Marked as misclassified No
Message-id <1257133844.49.0.793599813853.issue7249@psf.upfronthosting.co.za>
In-reply-to
Content
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/
History
Date User Action Args
2009-11-02 03:50:44rylessetrecipients: + ryles
2009-11-02 03:50:44rylessetmessageid: <1257133844.49.0.793599813853.issue7249@psf.upfronthosting.co.za>
2009-11-02 03:50:43ryleslinkissue7249 messages
2009-11-02 03:50:42rylescreate