[issue44119] Use glob.glob() to implement pathlib.Path.glob()

2021-05-12 Thread Barney Gale
Barney Gale added the comment: Flawed implementation, timings were bogus. Closing in shame. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44119] Use glob.glob() to implement pathlib.Path.glob()

2021-05-12 Thread Barney Gale
New submission from Barney Gale : I have a scratchy patch that replaces pathlib's globbing implementation with glob.glob(), which gained a `root_dir` argument in bpo-38144 Encouraging timings: $ ./python -m timeit -s "from pathlib import Path; p = Path()" -- "list(p.glob('**/*'))" Unpatched: