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

Sentinel in namespace path breaks NamespaceReader #123987

Open
jaraco opened this issue Sep 12, 2024 · 0 comments
Open

Sentinel in namespace path breaks NamespaceReader #123987

jaraco opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
3.13 bugs and security fixes topic-importlib type-bug An unexpected behavior, bug, or error

Comments

@jaraco
Copy link
Member

jaraco commented Sep 12, 2024

Bug report

Bug description:

As reported in python/importlib_resources#311 and highlighted by python/importlib_resources#318, when an editable install adds a sentinel value to a namespace path, it can break the NamespaceReader when that value doesn't resolve to a pathlib.Path or zipfile.Path.

This code was introduced in #106531 and fixed in importlib_resources 6.4.5.

CPython versions tested on:

3.13

Operating systems tested on:

macOS

Linked PRs

@jaraco jaraco added type-bug An unexpected behavior, bug, or error topic-importlib labels Sep 12, 2024
@jaraco jaraco self-assigned this Sep 12, 2024
@jaraco jaraco added the 3.13 bugs and security fixes label Sep 12, 2024
jaraco added a commit to jaraco/cpython that referenced this issue Sep 12, 2024
jaraco added a commit to jaraco/cpython that referenced this issue Sep 12, 2024
jaraco added a commit to jaraco/cpython that referenced this issue Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.13 bugs and security fixes topic-importlib type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant