[issue7610] Cannot use both read and readline method in same ZipExtFile object
report at bugs.python.org
Mon Jan 4 23:39:34 CET 2010
Nir Aides <nir at winpdb.org> added the comment:
Right, I was reading the 3.1 docs by mistake.
I updated the patch. This time universal newlines are supported.
On my dataset (75MB 650K lines log file) the readline() speedup is x40 for 'r' mode and x8 for 'rU' mode, and you can get an extra bump by using the io module wrappers.
I added tests for interleaved use of readline() and read() (which add ~2 seconds to running time)
Added file: http://bugs.python.org/file15739/zipfile_7610_py27.diff
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list