diff options
author | Victor Stinner <vstinner@python.org> | 2021-02-18 11:35:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 11:35:37 (GMT) |
commit | a3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612 (patch) | |
tree | 3dd6f26b5a5fe9b3e2d3bcb0f465bfd28d5bb6b1 /Misc/NEWS.d | |
parent | 366dc3a1354078e38808b9c16276e97cca5b8aaf (diff) | |
download | cpython-a3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612.zip cpython-a3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612.tar.gz cpython-a3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612.tar.bz2 |
bpo-42990: Add __builtins__ attribute to functions (GH-24559)
Expose the new PyFunctionObject.func_builtins member in Python as a
new __builtins__ attribute on functions.
Document also the behavior change in What's New in Python 3.10.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2021-02-17-19-02-21.bpo-42990.SKXHiI.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2021-02-17-19-02-21.bpo-42990.SKXHiI.rst b/Misc/NEWS.d/next/Core and Builtins/2021-02-17-19-02-21.bpo-42990.SKXHiI.rst new file mode 100644 index 0000000..cc17154 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2021-02-17-19-02-21.bpo-42990.SKXHiI.rst @@ -0,0 +1,3 @@ +Functions have a new ``__builtins__`` attribute which is used to look for +builtin symbols when a function is executed, instead of looking into +``__globals__['__builtins__']``. Patch by Mark Shannon and Victor Stinner. |