mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _abc.py | ||