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 serhiy.storchaka
Recipients Dhiraj_Mishra, martin.panter, mbussonn, python-dev, serhiy.storchaka, takluyver
Date 2016-03-03.15:55:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457020554.27.0.303038223646.issue26039@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry for the delay Thomas. This is complex and important to me issue and I want to be attentive to it.

I think we should preserve long existing behavior even if it is not documented (documenting or deprecating it is other issue). Concurrent reading and wring with concurrent reading always (at least since adding ZipFile.open()) worked, but was never documented nor tested. Concurrent writing was added rather as a side effect of issue14099. If there is a benefit from getting rid of it, we can break it.

For preserving current behavior ZipFile.open(mode='w') should acquire the lock and it should be released in _ZipWriteFile.close().

I have added other comments on Rietveld. The patch needs to be updated to resolve conflicts with committed zipinfo-from-file5.patch.
History
Date User Action Args
2016-03-03 15:55:54serhiy.storchakasetrecipients: + serhiy.storchaka, python-dev, takluyver, martin.panter, mbussonn, Dhiraj_Mishra
2016-03-03 15:55:54serhiy.storchakasetmessageid: <1457020554.27.0.303038223646.issue26039@psf.upfronthosting.co.za>
2016-03-03 15:55:54serhiy.storchakalinkissue26039 messages
2016-03-03 15:55:53serhiy.storchakacreate