Windows open() of missing file: FileNotFoundError: [Errno 2] No such file or directory: 'nosuchfile.txt' (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
Also open('nodir/x.txt','w') and open('p2.py/x') give the same Errno 2 text; open('') -> FileNotFoundError [Errno 2] ... ''. e.winerror is None for open() failures (errno 2).