[New-bugs-announce] [issue21200] pkgutil.get_loader() fails on "__main__"
Eric Snow
report at bugs.python.org
Fri Apr 11 16:07:35 CEST 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue21200>
_______________________________________
More information about the New-bugs-announce
mailing list