Brett Cannon <br...@python.org> added the comment: > I'm not sure where namespace packages are documented
https://docs.python.org/3/reference/import.html#namespace-packages > 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. Nothing special. The import system just asks the meta path finder whether they can handle a module, and if they return a spec they can, if they don't then they can't. So it is of no concern whether two different meta path importers handle the same package for whatever reason. A successful import is a successful import. 😁 ---------- _______________________________________ 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