[New-bugs-announce] [issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

Paul Moore report at bugs.python.org
Tue Apr 27 15:25:40 EDT 2021


New submission from Paul Moore <p.f.moore at gmail.com>:

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.

----------
assignee: docs at python
components: Documentation
messages: 392123
nosy: docs at python, paul.moore
priority: normal
severity: normal
status: open
title: Importlib.metadata docs claim PackagePath is a Path subclass
type: behavior
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43958>
_______________________________________


More information about the New-bugs-announce mailing list