[Python-Dev] [PATCH] Fix dictionary subclass semantics when used as global dictionaries (original) (raw)

Crutcher Dunnavant crutcher at gmail.com
Wed Jan 11 00:47:18 CET 2006


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.

I'm pretty sure we keep the fast path in this.

Crutcher Dunnavant <crutcher at gmail.com> monket.samedi-studios.com -------------- next part -------------- A non-text attachment was scrubbed... Name: dictsubclassexec.patch Type: application/octet-stream Size: 6621 bytes Desc: not available Url : http://mail.python.org/pipermail/python-dev/attachments/20060110/34be979a/attachment.obj



More information about the Python-Dev mailing list