[issue14099] ZipFile.open() should not reopen the underlying file
Serhiy Storchaka
report at bugs.python.org
Fri Nov 14 21:03:05 CET 2014
Serhiy Storchaka added the comment:
Thank you David for your benchmarks and patch. There are several backward compatibility issues with the reading from ZipFile opened for write and from closed ZipFile. This behavior is mostly undocumented (except the reading from closed ZipFile), but even our tests depend on it and changing it could break user code with good chance.
Here is a patch which preserves current behavior. Added new tests to check this behavior explicitly. Other advantage of the patch is that it doesn't change the signature of ZipExtFile constructor at all.
Benchmarks don't show stable significant difference between patched and unpatched versions.
----------
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file37197/zipfile_share_file.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14099>
_______________________________________
More information about the Python-bugs-list
mailing list