Nick Coghlan <[email protected]> added the comment:
Yup. A simpler demonstration:
Python 3.3.0b1 (default:8bf691d0b004+, Jul 15 2012, 23:20:06)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from importlib import _bootstrap, machinery
>>> _bootstrap.FileFinder is machinery.FileFinder
False
My initial theory (a missing sys.modules entry) failed miserably, as
import.__init__ already has the following line:
sys.modules['importlib._bootstrap'] = _bootstrap
I'm guessing it has to be some weird interaction with the explicit relative
import, but I would have expected that to pick up on either the parent module
attribute or the sys.modules entry.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15386>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com