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 paul.moore
Recipients docs@python, paul.moore
Date 2021-04-27.19:25:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619551540.42.0.304542326488.issue43958@roundup.psfhosted.org>
In-reply-to
Content
The importlib.metadata documentation states that the PackagePath class is "a pathlib.Path derived object". This isn't true - it's a PurePath subclass, and in particular it does not have a resolve() method. In fact, it has an undocumented custom locate() method that converts it into a Path object.

I propose changing the documentation to make it clear that it is a PurePath subclass, and explicitly documenting the locate() method.
History
Date User Action Args
2021-04-27 19:25:40paul.mooresetrecipients: + paul.moore, docs@python
2021-04-27 19:25:40paul.mooresetmessageid: <1619551540.42.0.304542326488.issue43958@roundup.psfhosted.org>
2021-04-27 19:25:40paul.moorelinkissue43958 messages
2021-04-27 19:25:40paul.moorecreate