Message165771
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. |
|
Date |
User |
Action |
Args |
2012-07-18 13:27:01 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon |
2012-07-18 13:27:01 | ncoghlan | set | messageid: <1342618021.51.0.789311509687.issue15386@psf.upfronthosting.co.za> |
2012-07-18 13:27:00 | ncoghlan | link | issue15386 messages |
2012-07-18 13:27:00 | ncoghlan | create | |
|