Brett Cannon <br...@python.org> added the comment:
You didn't specify the path to search in to find `a`. https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder.find_spec says that PathFinder only has class methods, which means find_spec() won't know where 'namespace' is, so the search will fail to find anything, hence returning None. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45591> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com