Martin v. Löwis added the comment:

Why do you think the behavior is broken? It looks right to me - it's not 
possible to get file information for a file that is scheduled for deletion.

ISTM that rather os.path.exists has non-intuitive behavior; it shouldn't infer 
from the PermissionError that the file does not exist, but that it is not able 
to tell.

However, this is not a bug, but documented behavior, see

http://docs.python.org/library/os.path.html#os.path.exists

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15556>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to