[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages
Paul Moore
report at bugs.python.org
Thu Apr 1 14:04:25 EDT 2021
Paul Moore <p.f.moore at gmail.com> added the comment:
OK, cool. That might be worth explaining somewhere in the docs (although I don't really know where, as I'm not sure where namespace packages are documented, either :-))
I'm not at all sure what would happen if we have meta path finders A and B on sys.meta_path in that order, and A.find_spec("foo.bar") returns a spec, but A.find_spec("foo") doesn't and B.find_spec("foo") does. I think the honest answer is "I get a headache" ;-)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43697>
_______________________________________
More information about the Python-bugs-list
mailing list