]> granicus.if.org Git - python/commit
Issue #14385: Support other types than dict for __builtins__
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Apr 2012 22:57:45 +0000 (00:57 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Apr 2012 22:57:45 +0000 (00:57 +0200)
commitb0b224233e481d979430a54d257d871424ff19fb
tree86be7f1a45404ec56003f36f5f76dd82c85c6ca8
parent05fac022eca4604275e16c62136ca02aaea879e1
Issue #14385: Support other types than dict for __builtins__

It is now possible to use a custom type for the __builtins__ namespace, instead
of a dict. It can be used for sandboxing for example.  Raise also a NameError
instead of ImportError if __build_class__ name if not found in __builtins__.
Lib/test/test_builtin.py
Misc/NEWS
Objects/frameobject.c
Python/ceval.c