]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42990: Add __builtins__ attribute to functions (GH-24559)
authorVictor Stinner <vstinner@python.org>
Thu, 18 Feb 2021 11:35:37 +0000 (12:35 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 11:35:37 +0000 (12:35 +0100)
commita3c3ffa68e6fc4524b1149a6a14d56c3a2e9b612
tree3dd6f26b5a5fe9b3e2d3bcb0f465bfd28d5bb6b1
parent366dc3a1354078e38808b9c16276e97cca5b8aaf
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.
Doc/library/inspect.rst
Doc/whatsnew/3.10.rst
Lib/test/test_collections.py
Lib/test/test_funcattrs.py
Misc/NEWS.d/next/Core and Builtins/2021-02-17-19-02-21.bpo-42990.SKXHiI.rst [new file with mode: 0644]
Objects/funcobject.c