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 CarK
Recipients CarK, SilentGhost, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-07-06.19:09:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562440195.49.0.929655434597.issue37515@roundup.psfhosted.org>
In-reply-to
Content
This is a good explanation. Indeed Windows complains if I manually want to create a file "aux.txt" ("This device name is not allowed").

If I want to copy-paste such a file from within a zip-file (Windows Explorer can open zip files) I get an "Unexpected Error".


I think a descriptive error message would be very helpful here. The best mechanism would be if this was generated on system level and then just passed through by io.open to the generated Exception. But just throwing a "FileNotFoundError" without any hint is potentially frustrating.

Suggestion for a better Error message: "Could neither open nor create the desired file. Maybe the filename is not allowed by the underlying os".
History
Date User Action Args
2019-07-06 19:09:55CarKsetrecipients: + CarK, paul.moore, tim.golden, SilentGhost, zach.ware, steve.dower
2019-07-06 19:09:55CarKsetmessageid: <1562440195.49.0.929655434597.issue37515@roundup.psfhosted.org>
2019-07-06 19:09:55CarKlinkissue37515 messages
2019-07-06 19:09:55CarKcreate