summaryrefslogtreecommitdiffstats
path: root/Lib/struct.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2024-01-20 02:10:25 (GMT)
committerGitHub <noreply@github.com>2024-01-20 02:10:25 (GMT)
commit6313cdde58f34648a430d2830357c9d2a5b67b87 (patch)
treeab329b153fb95322934d83eaf62b9a6749d0f09c /Lib/struct.py
parent681e9e85a2c1f72576ddfbd766506e2d6db34862 (diff)
downloadcpython-6313cdde58f34648a430d2830357c9d2a5b67b87.zip
cpython-6313cdde58f34648a430d2830357c9d2a5b67b87.tar.gz
cpython-6313cdde58f34648a430d2830357c9d2a5b67b87.tar.bz2
GH-79634: Accept path-like objects as pathlib glob patterns. (#114017)
Allow `os.PathLike` objects to be passed as patterns to `pathlib.Path.glob()` and `rglob()`. (It's already possible to use them in `PurePath.match()`) While we're in the area: - Allow empty glob patterns in `PathBase` (but not `Path`) - Speed up globbing in `PathBase` by generating paths with trailing slashes only as a final step, rather than for every intermediate directory. - Simplify and speed up handling of rare patterns involving both `**` and `..` segments.
Diffstat (limited to 'Lib/struct.py')
0 files changed, 0 insertions, 0 deletions