Wolfgang Langner added the comment: Why not implement this pattern with
def dirs(pattern) and def files(pattern) where both are a simple shortcut for (p for p in mypath.glob(pattern) if p is_file()) or is_dir() ? ---------- nosy: +tds333 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19767> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com