[Python-Dev] Document None values in sys.modules?

Fred Drake fdrake at acm.org
Thu Jul 23 21:09:10 CEST 2009

On Jul 23, 2009, at 2:59 PM, Georg Brandl wrote:
> is the presence of None values in sys.modules considered an  
> implementation
> detail?  If not, it should be documented what the None values mean  
> to the
> interpreter.

As I recall, they're an optimization.  But since sys.modules is itself  
documented, and many applications actually use it, I think it's worth  
explaining that the None values can reasonably be expected, and what  
they indicate.


Fred Drake   <fdrake at acm.org>

More information about the Python-Dev mailing list