Message379136
> 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. |
|
Date |
User |
Action |
Args |
2020-10-20 14:53:27 | iritkatriel | set | recipients:
+ iritkatriel, eryksun, danny87105 |
2020-10-20 14:53:27 | iritkatriel | set | messageid: <1603205607.36.0.301023221689.issue41737@roundup.psfhosted.org> |
2020-10-20 14:53:27 | iritkatriel | link | issue41737 messages |
2020-10-20 14:53:27 | iritkatriel | create | |
|