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 andrei.avk
Recipients FFY00, andrei.avk, garrison.taylor
Date 2021-06-20.19:21:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I propose fixing this in documentation.

Raising an error is probably not warranted because zip files are often created on one system and used on another, so you can't raise an error based on current OS, and having a leading slash in the name is both useful and does work in MacOS and Unix. It probably works in some unzip programs on Windows as well (if anyone can test that would be great).

Therefore I propose adding the following notes to ZipInfo, ZipFile.write() and ZipFile.writestr():

Note: a leading slash in the archive / filename may lead to the archive being un-openable in some zip programs on Windows systems.

If that sounds good I can make a PR.
Date User Action Args
2021-06-20 19:21:07andrei.avksetrecipients: + andrei.avk, FFY00, garrison.taylor
2021-06-20 19:21:07andrei.avksetmessageid: <>
2021-06-20 19:21:07andrei.avklinkissue43066 messages
2021-06-20 19:21:07andrei.avkcreate