[Python-Dev] [PATCH] Fix dictionary subclass semantics when used as global dictionaries

Aahz aahz at pythoncraft.com
Wed Jan 11 01:08:44 CET 2006


On Tue, Jan 10, 2006, Crutcher Dunnavant wrote:
>
> There is an inconsistancy in the way that dictionary subclasses behave
> when they are used as as namespaces in execs.
> 
> Basically, while python 2.4 permits the usage of dictionary subclasses
> for local environments, it still bypasses the subclass functions and
> uses the C API for global environments. The attached patch (and
> unittest!) addresses this issue.

Please submit the patch to SourceForge and report back with the SF ID.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"19. A language that doesn't affect the way you think about programming,
is not worth knowing."  --Alan Perlis


More information about the Python-Dev mailing list