[Python-Dev] towards a faster Python

Neil Schemenauer nas@python.ca
Mon, 9 Jun 2003 13:18:48 -0700


Skip Montanaro wrote:
> Make the module dict read-only and some as-yet-to-be-determined time during
> import?

I don't think read-only will fly.  Perhaps we could use a subclass of
dict for the module dict.  It could have an optimized interface for use
by the runtime internals.  The standard dict interface would be slower
and could check for monkey business.

  Neil