[issue15176] Clarify the behavior of listdir(fd) in both code and documentation

Larry Hastings report at bugs.python.org
Mon Jun 25 07:20:30 CEST 2012


Larry Hastings <larry at hastings.org> added the comment:

Nevermind, I'm an idiot.  fdopendir doesn't support dir_fd as a separate path, so listdir can't support it either.

There's an unwritten property of the os module on a POSIX system: all the functions are essentially-atomic.  This is useful and should not be broken lightly.

I'll make a patch clarifying the behavior of listdir.

----------

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


More information about the Python-bugs-list mailing list