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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22759>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to