New submission from David Beazley: 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 >>> ---------- components: Library (Lib) messages: 167299 nosy: dabeaz priority: normal severity: normal status: open title: Iteration breaks with bz2.open(filename,'rt') type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15546> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com