Message137821
Python 3.3a0 (default:7323a865457a+, Jun 5 2011, 19:22:38)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.modules['logging']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: 'logging'
>>> sys.modules['os']
<module 'os' from '/home/rdmurray/python/p33/Lib/os.py'>
The difference is that logging is not imported at startup. So, however os (and friends, there are a lot of modules in sys.modules at startup) is imported, it is different from how readline.so is imported. |
|
Date |
User |
Action |
Args |
2011-06-07 13:13:01 | r.david.murray | set | recipients:
+ r.david.murray, brett.cannon, jcea, pitrou, vstinner, eric.araujo, Niels.Heinen |
2011-06-07 13:13:01 | r.david.murray | set | messageid: <1307452381.21.0.720000044317.issue12238@psf.upfronthosting.co.za> |
2011-06-07 13:13:00 | r.david.murray | link | issue12238 messages |
2011-06-07 13:13:00 | r.david.murray | create | |
|