Message158587
| Author |
benjamin.peterson |
| Recipients |
benjamin.peterson, brett.cannon |
| Date |
2012年04月18日.03:58:36 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334721517.01.0.954208594605.issue14609@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
$ cat > x.py
import sys
sys.modules["x"] = 42
benjamin@localhost ~/dev/python/py3k $ python3
Python 3.2.2 (default, Feb 18 2012, 09:16:28)
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import x
>>> x
42
$ ./python
Python 3.3.0a2+ (default:6762b943ee59, Apr 17 2012, 23:57:13)
[GCC 4.5.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import x
>>> x
<module 'x' from './x.py'>
It's not clear to me whether it's the loader's responsibilty to handle this or __import__. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月18日 03:58:37 | benjamin.peterson | set | recipients:
+ benjamin.peterson, brett.cannon |
| 2012年04月18日 03:58:37 | benjamin.peterson | set | messageid: <1334721517.01.0.954208594605.issue14609@psf.upfronthosting.co.za> |
| 2012年04月18日 03:58:36 | benjamin.peterson | link | issue14609 messages |
| 2012年04月18日 03:58:36 | benjamin.peterson | create |
|