[Python-Dev] Accessing globals without dict lookup

Skip Montanaro skip@pobox.com
Sun, 10 Feb 2002 16:35:49 -0600


    Tim> There's the problem of object identity: it's possible for exec'ed
    Tim> code to mutate the original dict while the exec'ed code is running,
    Tim> and Guido gave an example where that can matter.  

In the face of exec statements or calls to execfile can't the compiler just
generate the usual LOAD_NAME fallback instead of the new-fangled LOAD_GLOBAL
opcode?

Skip