Message406910
The documentation of Path.match only says it will match a pattern.
But quite often this pattern may be desirable to have as a Path as well.
import pathlib as pl
path = pl.Path("foo/bar")
print(path.match("bar"))
print(path.match(pl.Path("bar")))
However, the last one fails and one has to resort to
print(path.match(str(pl.Path("bar"))))
which in my opinion is a little misleading.
I couldn't find any other bug/enhancement report of this. Also, this probably also targets later versions. |
|
Date |
User |
Action |
Args |
2021-11-24 07:54:31 | nickpapior | set | recipients:
+ nickpapior |
2021-11-24 07:54:31 | nickpapior | set | messageid: <1637740471.98.0.448189048749.issue45889@roundup.psfhosted.org> |
2021-11-24 07:54:31 | nickpapior | link | issue45889 messages |
2021-11-24 07:54:31 | nickpapior | create | |
|