Brett Cannon <br...@python.org> added the comment:

There is no mechanism as the entire concept of a namespace package is 
implemented in importlib.machinery.PathFinder itself and not the generic import 
system (see 
https://github.com/python/cpython/blob/652bfdee9495dca241d48278742fe035b7a82bdb/Lib/importlib/_bootstrap_external.py#L1339-L1369).
 So at the sys.meta_path level, the entire concept of namespace packages isn't 
even a thing; namespace packages only exist because FileFinder itself makes 
namespace package possible.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43697>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to