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 gregory.p.smith
Recipients gregory.p.smith, malin, methane, xtreak
Date 2021-04-11.21:32:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618176760.94.0.838419135783.issue43785@roundup.psfhosted.org>
In-reply-to
Content
I'm not worried about compatibility on this for 3.10.  Nobody realistically expects to be able to have multiple readers from a single BZ2File stream.  They don't for the gzip or lzma equivalents.  That isn't even a normal thing to do on an actual file.  Lets go forward with this for 3.10betas and see if anyone even notices.  I doubt they will.

But the addition of __iter__ deferring to iter(self._buffer) belongs in its own PR and issue and should be done for all of bz2, gzip, and lzma all at once.

I've edited the PR branch to remove __iter__ and cleanup a couple of minor nits.
History
Date User Action Args
2021-04-11 21:32:40gregory.p.smithsetrecipients: + gregory.p.smith, methane, malin, xtreak
2021-04-11 21:32:40gregory.p.smithsetmessageid: <1618176760.94.0.838419135783.issue43785@roundup.psfhosted.org>
2021-04-11 21:32:40gregory.p.smithlinkissue43785 messages
2021-04-11 21:32:40gregory.p.smithcreate