Message137821
| Author |
r.david.murray |
| Recipients |
Niels.Heinen, brett.cannon, eric.araujo, jcea, pitrou, r.david.murray, vstinner |
| Date |
2011年06月07日.13:13:00 |
| SpamBayes Score |
3.0838445e-09 |
| Marked as misclassified |
No |
| Message-id |
<1307452381.21.0.720000044317.issue12238@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|