[issue1625] bz2.BZ2File doesn't support multiple streams

Antoine Pitrou report at bugs.python.org
Sat Oct 10 22:11:35 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

As far as I can tell, the patch looks mostly good.
I just wonder, in Util_HandleBZStreamEnd(), why you don't set self->mode
to MODE_CLOSED if BZ2_bzReadOpen() fails.

As a sidenote, the bz2 module implementation seems to have changed quite
a bit between trunk and py3k, so if you want it to be backported to
trunk (2.7), you'll have to provide a separate patch.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1625>
_______________________________________


More information about the Python-bugs-list mailing list