A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-October/029784.html below:

[Python-Dev] Patch to use dict subclasses in eval(), exec

[Python-Dev] Patch to use dict subclasses in eval(), exec [Python-Dev] Patch to use dict subclasses in eval(), execJack 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 -




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4