[issue22759] pathlib: Path.exists broken

Antoine Pitrou report at bugs.python.org
Thu Oct 30 20:25:55 CET 2014


Antoine Pitrou added the comment:

ENAMETOOLONG: that doesn't mean the file doesn't exist. For example, it could be accessed by changing the current directory and shortening the residual path name.

ELOOP: unfortunately it doesn't guarantee that there is a real symlink loop, just that the OS decided to bail out after a certain number of indirections.

So in both cases I think we should let the errors bubble up.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22759>
_______________________________________


More information about the Python-bugs-list mailing list