[issue35839] Suggestion: Ignore sys.modules entries with no __spec__ attribute in find_spec
Nick Coghlan
report at bugs.python.org
Mon Jan 28 01:58:55 EST 2019
Nick Coghlan <ncoghlan at gmail.com> added the comment:
I'd also suggest that we emit ImportWarning when taking the fallback path, since we really would prefer that sys.modules entries either have a valid __spec__, or else explicitly set `__spec__ = None`.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35839>
_______________________________________
More information about the Python-bugs-list
mailing list