Paul Pinterits <rawi...@gmail.com> added the comment:

As an afterthought, I'd like to suggest an alternative solution: If changing 
the `iterdir` behavior is not possible or not desirable for some reason, please 
add a `Path.listdir` method that returns a list instead of an iterator. Lazy 
file system operations can often introduce unnecessary race conditions in the 
code, so I believe it would be very useful if every lazy method had an eager 
equivalent.

----------

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

Reply via email to