[issue5863] bz2.BZ2File should accept other file-like objects.
Nadeem Vawda
report at bugs.python.org
Sat Jan 22 01:49:19 CET 2011
Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:
I have been working on a patch for this issue. I've implemented everything except for readline(), readlines() and the iterator protocol.
In the existing implementation, the reading methods seem to interact weirdly - iternext() uses a readahead buffer, while none of the other methods do. Does anyone know if there's a reason for this? I was planning on having all the reading methods use a common buffer, which should allow free mixing of read methods and iteration.
Looking at issue8397, I'm guessing it would be fine, but I wanted to double-check in case there's a quirk of the iteration protocol that I've overlooked, or something like that.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5863>
_______________________________________
More information about the Python-bugs-list
mailing list