cpython icon indicating copy to clipboard operation
cpython copied to clipboard

importlib.resources.abc.Traversable.joinpath docs incomplete

Open encukou opened this issue 1 year ago • 1 comments

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

  • gh-117113

encukou avatar Mar 20 '24 14:03 encukou

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.

jaraco avatar Mar 20 '24 16:03 jaraco