Evgeny Kapun added the comment:

Not a problem, just two unnecessary syscalls. Also, I think that many of those 
who pass a file descriptor to os.listdir don't need it afterwards, because 
after you fstat() a file descriptor (to discover that it points to a directory) 
and read the directory contents, there are few things you can use it for.

----------

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

Reply via email to