Alex Perry added the comment: You seem to be skipping a step, this is nothing to do with FileInput:
>>> [n for n in Path('.')] Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'PosixPath' object is not iterable >>> [n for n in Path('.').iterdir()] [PosixPath('build'), PosixPath('install-sh'), ...] Are you proposing a feature that the Path instance should be implicitly iterable for the directory contents? ---------- nosy: +arp11 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30432> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com