为什么有idlelib.sys

时间:2012-07-16 22:24:47

标签: python import python-2.7 python-2.x

我所做的是以下内容:

Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import sys
>>> print sys.modules['idlelib.sys']
None
>>> 'idlelib.sys' in sys.modules
True

为什么有这个空模块?

1 个答案:

答案 0 :(得分:2)

似乎标记了模块加载缓存未命中,请参阅here