mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
bpo-19737: Improved the documentation for globals (GH-29823)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
901cbbd2ca
commit
4fe5585240
2 changed files with 4 additions and 3 deletions
|
|
@ -733,9 +733,9 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
.. function:: globals()
|
.. function:: globals()
|
||||||
|
|
||||||
Return a dictionary representing the current global symbol table. This is always
|
Return the dictionary implementing the current module namespace. For code within
|
||||||
the dictionary of the current module (inside a function or method, this is the
|
functions, this is set when the function is defined and remains the same
|
||||||
module where it is defined, not the module from which it is called).
|
regardless of where the function is called.
|
||||||
|
|
||||||
|
|
||||||
.. function:: hasattr(object, name)
|
.. function:: hasattr(object, name)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Update the documentation for the :func:`globals` function.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue