Barney Gale <barney.g...@gmail.com> added the comment:

My view:

I think the existing solution (that you highlight) is sufficiently idiomatic 
and easy to discover, and doesn't warrant a new argument or function.

However, that may change when `Path` is subclassable, for two reasons:

1. You will be able to subclass `Path` and add your own method, which you may 
find preferable to a helper function.
2. We _may_ add some sort of file type enum that wraps the constants in `stat`. 
In that case it might be natural to add a `file_type` argument to `iterdir()`. 
No promises!

----------
nosy: +barneygale

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

Reply via email to