Irit Katriel <iritkatr...@yahoo.com> added the comment:
> I don't think a general developer would expect that > open('/path/to/file/somename.txt') implies a directory operation, and it also > doesn't on Windows. Really? It's not obvious that finding a file would involve directory operations? In what sense does it even matter whether you expect a directory operation to happen? The contract is that if the open() fails you get an OSError. The documentation doesn't say which OSError, and that is in fact a platform-specific implementation detail. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41737> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com