mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-101888: Add function.__builtins__ to ref documentation (#144174)
This commit is contained in:
parent
04d497c284
commit
933540e332
@ -546,6 +546,7 @@ Special read-only attributes
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. index::
|
||||
single: __builtins__ (function attribute)
|
||||
single: __closure__ (function attribute)
|
||||
single: __globals__ (function attribute)
|
||||
pair: global; namespace
|
||||
@ -556,6 +557,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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user