https://github.com/python/cpython/commit/f9f0a78f1c71c9239be5edb903c0844abb48a853 commit: f9f0a78f1c71c9239be5edb903c0844abb48a853 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-01-26T16:22:31Z summary:
[3.13] gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (#144253) gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (cherry picked from commit 933540e33217474abee3e1b53dec28ad927b6311) Co-authored-by: Victor Stinner <[email protected]> files: M Doc/reference/datamodel.rst diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 0ffc8335790082..3b21fb555155e2 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -541,6 +541,7 @@ Special read-only attributes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. index:: + single: __builtins__ (function attribute) single: __closure__ (function attribute) single: __globals__ (function attribute) pair: global; namespace @@ -551,6 +552,12 @@ Special read-only attributes * - Attribute - Meaning + * - .. attribute:: function.__builtins__ + - A reference to the :class:`dictionary <dict>` that holds the function's + builtins namespace. + + .. versionadded:: 3.10 + * - .. attribute:: function.__globals__ - A reference to the :class:`dictionary <dict>` that holds the function's :ref:`global variables <naming>` -- the global namespace of the module _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
