[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-13 Thread Steve Dower
Steve Dower added the comment: The trailing colon is unnecessary, and likely to cause more issues, but the same thing occurs for Path('NUL').resolve() This is probably best handled as issue37517, where you'll find more background on the error messages. But I believe that

[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eryksun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41536] pathlib's Path("NUL:").resolve() throws an error on windows

2020-08-12 Thread Phillip Mackintosh
New submission from Phillip Mackintosh : I'm looking for the equivalent windows functionality to the posix `/dev/null` file, and I discovered `NUL:` This snippet works on a windows OS, proving that it is indeed a writable file: `Path('NUL:').write_text('abcd')` However,