This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ovsyanka
Recipients Ovsyanka, barneygale
Date 2022-01-02.19:42:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1641152580.02.0.385896313075.issue46227@roundup.psfhosted.org>
In-reply-to
Content
Some people could suggest using Path.glob instead but I found it to be less convenient for some use cases and generally slower (~2.7 times slower).

>>> timeit("list(Path('Lib').walk())", number=100, globals=globals())
1.9074640140170231
>>> timeit("list(Path('Lib').glob('**/*'))", number=100, globals=globals())
5.14890358998673
History
Date User Action Args
2022-01-02 19:43:00Ovsyankasetrecipients: + Ovsyanka, barneygale
2022-01-02 19:43:00Ovsyankasetmessageid: <1641152580.02.0.385896313075.issue46227@roundup.psfhosted.org>
2022-01-02 19:43:00Ovsyankalinkissue46227 messages
2022-01-02 19:42:59Ovsyankacreate