[Python-Dev] distutils.sys: None in sys.modules

Gordon McMillan gmcm@hypernet.com
Tue, 10 Apr 2001 08:02:42 -0400


[Ka-Ping]
> 
> What are 'distutils.sys', 'distutils.os', 'distutils.string',
> 'distutils.re', 'distutils.distutils' doing in there?  (The
> sys.modules dictionary maps all these keys to None.)

Relative imports come first. Their failure is recorded so the 
next module in the package importing the same name doesn't 
go hunting for it on disk all over again.



- Gordon