Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importlib.resources.abc.Traversable.joinpath docs incomplete #117074

Closed
encukou opened this issue Mar 20, 2024 · 1 comment
Closed

importlib.resources.abc.Traversable.joinpath docs incomplete #117074

encukou opened this issue Mar 20, 2024 · 1 comment
Assignees
Labels
docs Documentation in the Doc dir

Comments

@encukou
Copy link
Member

encukou commented Mar 20, 2024

importlib.resources.abc.Traversable.joinpath should mention that it can take multiple descendants.

The versionchanged note should mention that some providers might still not support this.

@jaraco, this was officially added in 3.11, right?

Linked PRs

@jaraco
Copy link
Member

jaraco commented Mar 20, 2024

this was officially added in 3.11, right?

It looks like the protocol was updated in importlib_resources 5.7 and Python 3.11, but it wasn't until later (importlib_resources 5.11 and Python 3.12) that MultiplexedPath added that support (so namespace packages wouldn't have support until Python 3.12). But yes, generally speaking, what you've described is correct.

@encukou encukou closed this as completed Apr 5, 2024
@encukou encukou reopened this Apr 5, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Apr 5, 2024
…ol (pythonGH-117113)

(cherry picked from commit e569f91)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou added a commit that referenced this issue Apr 5, 2024
…col (GH-117113) (GH-117571)

gh-117074: Update Traversable.joinpath docs to the 3.11+ protocol (GH-117113)
(cherry picked from commit e569f91)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@encukou encukou closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants