Tim Golden added the comment:

Had a to-and-fro on IRC with RDM who highlighted that an inconsistency between 
os.listdir and os.path.exists (the case here) is, at least, undesirable. As it 
stands, our os.exists on os.stat mechanism will fail because any attempt to get 
any kind of handle via CreateFile will fail once the file is unlinked. However, 
FindFirstFile succeeds (hence os.listdir).

I'll put forward a patch to see whether it's worth pursuing.

----------

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

Reply via email to