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 dabeaz
Recipients dabeaz
Date 2012-08-03.09:04:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343984674.35.0.733492369263.issue15546@psf.upfronthosting.co.za>
In-reply-to
Content
The bz2 library in Python3.3b1 doesn't support iteration for text-mode properly.  Example:

>>> f = bz2.open('access-log-0108.bz2')
>>> next(f)       # Works
b'140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] "GET /ply/ply.html HTTP/1.1" 200 97238\n'

>>> g = bz2.open('access-log-0108.bz2','rt')
>>> next(g)       # Fails
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
StopIteration
>>>
History
Date User Action Args
2012-08-03 09:04:34dabeazsetrecipients: + dabeaz
2012-08-03 09:04:34dabeazsetmessageid: <1343984674.35.0.733492369263.issue15546@psf.upfronthosting.co.za>
2012-08-03 09:04:33dabeazlinkissue15546 messages
2012-08-03 09:04:33dabeazcreate