diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-04-18 22:57:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-04-18 22:57:45 (GMT) |
commit | b0b224233e481d979430a54d257d871424ff19fb (patch) | |
tree | 86be7f1a45404ec56003f36f5f76dd82c85c6ca8 /Misc | |
parent | 05fac022eca4604275e16c62136ca02aaea879e1 (diff) | |
download | cpython-b0b224233e481d979430a54d257d871424ff19fb.zip cpython-b0b224233e481d979430a54d257d871424ff19fb.tar.gz cpython-b0b224233e481d979430a54d257d871424ff19fb.tar.bz2 |
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__.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -10,6 +10,11 @@ What's New in Python 3.3.0 Alpha 3? Core and Builtins ----------------- +- Issue #14385: 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__. + - Issue #12599: Be more strict in accepting None compared to a false-like object for importlib.util.module_for_loader and importlib.machinery.PathFinder. |