On 8/5/19, Steve Dower <steve.do...@python.org> wrote:
>
> though I do also see many people bitten by FileNotFoundError
> because of a '\n' in their filename.

Thankfully the common filesystems used in Windows reserve ASCII
control characters in filenames (except not in stream names or
named-pipe names). So a mistaken string literal usually fails with a
more obvious ERROR_INVALID_NAME or C EINVAL instead of a mysterious
ERROR_FILE_NOT_FOUND or C ENOENT.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/HTOH6MOHYIDD2UX7YSM2ZVY4BP32ATYL/

Reply via email to