R. David Murray added the comment:

My man page says "The  data  returned by readdir() may be overwritten by 
subsequent calls to readdir() for the same directory stream."  Ross I believe 
was quoting from the posix *spec*, so that is a more complete explanation.  If 
an implementation is doing what you said, it would be out of compliance with 
posix.

Python opens a new directory stream inside listdir, and that directory stream 
is not exposed to the Python code, so there is no way for another Python thread 
to cause a problem here.

----------
nosy: +r.david.murray

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

Reply via email to