[Python-Dev] towards a faster Python

Skip Montanaro skip@pobox.com
Mon, 9 Jun 2003 15:02:21 -0500


    Neil> It's possible to modify the module dict directly and bypass the
    Neil> warning.  I'm not sure what to do about that. :-(

Make the module dict read-only and some as-yet-to-be-determined time during
import?  That is, upon initial import of a module the dict collecting names
would be made writable, but once it's associated with a module object (or
the import is completed), the dict would be flagged read-only or be
transmogrified into a read-only dict subclass of dict().

Skip