Aug. 6, 2019
2:34 p.m.
On 8/5/19, Steve Dower <steve.dower@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.