[Python-Dev] Patch to use dict subclasses in eval(), exec
Jack Jansen
Jack.Jansen@oratrix.com
Tue, 29 Oct 2002 23:43:52 +0100
If at some point it's decided that this patch is a good idea I
think we can get rid of the performance hit in the normal case
by duplicating eval_code2() with some preprocessor magic.
eval_code2() would then call out to eval_code2_non_dict() if the
globals weren't in a dict.
Hmm, I wonder whether there are other situations where this idea
would work too, i.e. situations where eval_code2() could decide
at startup that it could take a fast path...
--
- Jack Jansen <Jack.Jansen@oratrix.com>
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution --
Emma Goldman -