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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to