Message165771
| Author |
ncoghlan |
| Recipients |
brett.cannon, ncoghlan |
| Date |
2012年07月18日.13:27:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1342618021.51.0.789311509687.issue15386@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|