cpython/Lib/test/test_pathlib
Barney Gale 6f93b4df92
GH-115060: Speed up `pathlib.Path.glob()` by removing redundant regex matching (#115061)
When expanding and filtering paths for a `**` wildcard segment, build an `re.Pattern` object from the subsequent pattern parts, rather than the entire pattern, and match against the `os.DirEntry` object prior to instantiating a path object. Also skip compiling a pattern when expanding a `*` wildcard segment.
2024-02-10 18:12:34 +00:00
..
__init__.py
test_pathlib.py GH-115060: Speed up `pathlib.Path.glob()` by removing redundant regex matching (#115061) 2024-02-10 18:12:34 +00:00
test_pathlib_abc.py GH-106747: Make pathlib ABC globbing more consistent with `glob.glob()` (#115056) 2024-02-06 02:48:18 +00:00