[Python-Dev] Add a frozendict builtin type (original) (raw)

Victor Stinner victor.stinner at gmail.com
Thu Mar 1 14:00:38 CET 2012


A builtin frozendict type "compatible" with the PyDict C API is very convinient for pysandbox because using this type for core features like builtins requires very few modification. For example, use frozendict for builtins only requires to modify 3 lines in frameobject.c.

See the frozendict_builtins.patch attached to the issue #14162. Last version: http://bugs.python.org/file24690/frozendict_builtins.patch

Victor



More information about the Python-Dev mailing list