Nick Coghlan <ncogh...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue35839> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com