You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, _NamespacePath is prefixed as a private type, but since it's exposed, it should be marked as public API. I have a specific case in mind where I want to do an instance check.
I vaguely remember a discussion somewhere with @warsaw where this was mentioned, but I can't find it.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
I don't think we thought it should be hidden, rather there was just no reason to expose it. What's the need for accessing it? If it's at all compelling, then I'm +1.
For my specific case, I am loading data from a namespace package, or rather, I need to point to the directories containing said data. This could also be solved by importlib.resources in MultiplexedPath, I have opened python/importlib_resources#309 too.
Activity
pythonGH-119668: expose importlib.NamespacePath
warsaw commentedon May 28, 2024
I'll have to look around to see if I can dig up the previous discussion, but +1!
ericvsmith commentedon May 30, 2024
I don't think we thought it should be hidden, rather there was just no reason to expose it. What's the need for accessing it? If it's at all compelling, then I'm +1.
FFY00 commentedon May 30, 2024
For my specific case, I am loading data from a namespace package, or rather, I need to point to the directories containing said data. This could also be solved by
importlib.resourcesinMultiplexedPath, I have opened python/importlib_resources#309 too.GH-119668: expose importlib.machinery.NamespacePath (#119669)
pythonGH-119668: expose importlib.machinery.NamespacePath (python#119669