New submission from Eric Snow: Prior to 3.4, pkgutil.get_loader('__main__') would return None. Now it results in an ImportError. That's because it calls importlib.util.find_spec() which fails if an existing module does not have __spec__ or it is None.
---------- components: Library (Lib) keywords: 3.4regression messages: 215926 nosy: brett.cannon, eric.snow, larry, ncoghlan priority: release blocker severity: normal stage: test needed status: open title: pkgutil.get_loader() fails on "__main__" type: behavior versions: Python 3.4, Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21200> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com