E57A gh-101888: Add function.__builtins__ to ref documentation (#144174) · python/cpython@933540e · GitHub
[go: up one dir, main page]

Skip to content

Commit 933540e

Browse files
authored
gh-101888: Add function.__builtins__ to ref documentation (#144174)
1 parent 04d497c commit 933540e

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)
0