Message379131
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.
I suggest that a further notice be added to NotADirectoryError, such as:
Raised when a directory operation (such as os.listdir()) is requested on something which is not a directory. Corresponds to errno ENOTDIR. In some filesystem such as POSIX, NotADirectoryError (ENOTDIR) is raised when attempting to open a path whose ancestor is not a directory. |
|
Date |
User |
Action |
Args |
2020-10-20 14:36:13 | danny87105 | set | recipients:
+ danny87105, eryksun, iritkatriel |
2020-10-20 14:36:13 | danny87105 | set | messageid: <1603204573.55.0.51956407971.issue41737@roundup.psfhosted.org> |
2020-10-20 14:36:13 | danny87105 | link | issue41737 messages |
2020-10-20 14:36:13 | danny87105 | create | |
|