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 nirai
Recipients lucifer, nirai
Date 2010-01-03.10:34:02
SpamBayes Score 2.4644325e-10
Marked as misclassified No
Message-id <1262514847.45.0.155557079694.issue7610@psf.upfronthosting.co.za>
In-reply-to
Content
I uploaded a possible patch for Python 2.7.

The patch converts ZipExtFile into subclass of io.BufferedIOBase and drops most of the original implementation.

However, the patch breaks current newline behavior of ZipExtFile. I figured this was reasonable because zipfile newline behavior:
a) was introduced in Python 2.6
b) was incompatible with behavior of io module files.
c) was not documented.

Reading zip content as text with newline functionality may be done with io.TextIOWrapper.

A bonus of sub classing io.BufferedIOBase is significantly better read performance.
History
Date User Action Args
2010-01-03 10:34:07niraisetrecipients: + nirai, lucifer
2010-01-03 10:34:07niraisetmessageid: <1262514847.45.0.155557079694.issue7610@psf.upfronthosting.co.za>
2010-01-03 10:34:05nirailinkissue7610 messages
2010-01-03 10:34:05niraicreate