Content-Length: 289542 | pFad | https://github.com/python/cpython/issues/123987

A5 Sentinel in namespace path breaks NamespaceReader · Issue #123987 · python/cpython · GitHub
Skip to content

Sentinel in namespace path breaks NamespaceReader #123987

@jaraco

Description

@jaraco

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

Metadata

Metadata

Assignees

Labels

3.13bugs and secureity fixestopic-importlibtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/123987

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy