Skip to content

Commit f9f0a78

Browse files
[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 933540e) Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent fdac87a commit f9f0a78

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
@@ -541,6 +541,7 @@ Special read-only attributes
541541
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
542542

543543
.. index::
544+
single: __builtins__ (function attribute)
544545
single: __closure__ (function attribute)
545546
single: __globals__ (function attribute)
546547
pair: global; namespace
@@ -551,6 +552,12 @@ Special read-only attributes
551552
* - Attribute
552553
- Meaning
553554

555+
* - .. attribute:: function.__builtins__
556+
- A reference to the :class:`dictionary <dict>` that holds the function's
557+
builtins namespace.
558+
559+
.. versionadded:: 3.10
560+
554561
* - .. attribute:: function.__globals__
555562
- A reference to the :class:`dictionary <dict>` that holds the function's
556563
:ref:`global variables <naming>` -- the global namespace of the module

0 commit comments

Comments
 (0)