aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2023-05-30 21:18:09 +0100
committerGitHub <noreply@github.com>2023-05-30 20:18:09 +0000
commit49f90ba1eae56708b1894441418c13ad8e8ea9a8 (patch)
tree84113e0493e1d74e6f6dce582e827dc8a155540b /Python/symtable.c
parent4c770617c0feae18ce3b05e0c8acd0910acc7082 (diff)
downloadcpython-49f90ba1eae56708b1894441418c13ad8e8ea9a8.tar.gz
cpython-49f90ba1eae56708b1894441418c13ad8e8ea9a8.zip
GH-73435: Implement recursive wildcards in `pathlib.PurePath.match()` (#101398)
`PurePath.match()` now handles the `**` wildcard as in `Path.glob()`, i.e. it matches any number of path segments. We now compile a `re.Pattern` object for the entire pattern. This is made more difficult by `fnmatch` not treating directory separators as special when evaluating wildcards (`*`, `?`, etc), and so we arrange the path parts onto separate *lines* in a string, and ensure we don't set `re.DOTALL`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/symtable.c')
0 files changed, 0 insertions, 0 deletions