[issue17636] Modify IMPORT_FROM to fallback on sys.modules

PJ Eby report at bugs.python.org
Tue Dec 17 18:34:54 CET 2013


PJ Eby added the comment:

Unfortunately, this is not quite true: the weird edge cases for that approach are simply *different*, and harder to diagnose.  ;-)

The approach here can only affect execution paths that would currently raise ImportError; that one can break execution paths that are *currently working*.

As Brett said above, "By declaring what the semantics will be to make the case even possible we are not breaking anything but making something possible."  That is not the case for the approach proposed in the other issue.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17636>
_______________________________________


More information about the Python-bugs-list mailing list