Skip to content

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

Closed

Description

@encukou

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

Activity

  1. self-assigned this
    on Mar 20, 2024
  2. jaraco commented on Mar 20, 2024

    @jaraco
    Member

    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.

  3. added a commit that references this issue on Mar 21, 2024
  4. added a commit that references this issue on Apr 2, 2024
  5. reopened this on Apr 5, 2024
  6. added a commit that references this issue on Apr 5, 2024
  7. added a commit that references this issue on Apr 5, 2024
  8. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions