[issue45889] pathlib: Path.match does not work on paths
Ronald Oussoren
report at bugs.python.org
Wed Nov 24 06:38:14 EST 2021
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
Match doesn't match paths, but basically does a regular expression match on the textual representation (using glob syntax instead of normal regular expression syntax).
Because of this I don't agree with your idea that anything that can match a path is a sub-path.
What is your use case for this?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45889>
_______________________________________
More information about the Python-bugs-list
mailing list