New submission from Serhiy Storchaka: If the ZipFile was created by passing in a file-like object as the first argument to the constructor, then simultaneous reading or writing of different file results in an non-consistent state. There is a warning about this in the documentation. The proposed patch forces this condition, raising the early exception if you attempt to simultaneously access.
I'm not sure whether it's worth apply to older versions. ---------- components: Library (Lib) files: zipfile_simultaneous.patch keywords: patch messages: 176544 nosy: alanmcintyre, serhiy.storchaka priority: normal severity: normal stage: patch review status: open title: Preventing errors of simultaneous access in zipfile type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file28147/zipfile_simultaneous.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16569> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com