This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients nickpapior, ronaldoussoren
Date 2021-11-24.12:24:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1637756652.55.0.55206028565.issue45889@roundup.psfhosted.org>
In-reply-to
Content
I'm not sure what your code tries to accomplish, does it check that ``f.parent`` refers to the same location as ``ref_file``? A clearer solution for that would be ``f.parent.resolve() == ref_file.resolve()``. 

----

The argument to match, glob and rglob cannot be Paths because the argument is not a path but a pattern. Those are conceptually different.

What would ``Path("dir/some.py").match(Path("*.py"))`` return?
History
Date User Action Args
2021-11-24 12:24:12ronaldoussorensetrecipients: + ronaldoussoren, nickpapior
2021-11-24 12:24:12ronaldoussorensetmessageid: <1637756652.55.0.55206028565.issue45889@roundup.psfhosted.org>
2021-11-24 12:24:12ronaldoussorenlinkissue45889 messages
2021-11-24 12:24:12ronaldoussorencreate