Skip to content

Commit c5b23eb

Browse files
[3.14] gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (#144252)
gh-101888: Add function.__builtins__ to ref documentation (GH-144174) (cherry picked from commit 933540e) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 9be2290 commit c5b23eb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/reference/datamodel.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ Special read-only attributes
546546
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
547547

548548
.. index::
549+
single: __builtins__ (function attribute)
549550
single: __closure__ (function attribute)
550551
single: __globals__ (function attribute)
551552
pair: global; namespace
@@ -556,6 +557,12 @@ Special read-only attributes
556557
* - Attribute
557558
- Meaning
558559

560+
* - .. attribute:: function.__builtins__
561+
- A reference to the :class:`dictionary <dict>` that holds the function's
562+
builtins namespace.
563+
564+
.. versionadded:: 3.10
565+
559566
* - .. attribute:: function.__globals__
560567
- A reference to the :class:`dictionary <dict>` that holds the function's
561568
:ref:`global variables <naming>` -- the global namespace of the module

0 commit comments

Comments
 (0)