Skip to content

Commit

Permalink
bpo-19737: Improved the documentation for globals (GH-29823) (GH-30041)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 4fe5585)

Co-authored-by: 180909 <734461790@qq.com>
  • Loading branch information
miss-islington and 180909 committed Dec 11, 2021
1 parent 0f21bac commit 1f70008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -733,9 +733,9 @@ are always available. They are listed here in alphabetical order.

.. function:: globals()

Return a dictionary representing the current global symbol table. This is always
the dictionary of the current module (inside a function or method, this is the
module where it is defined, not the module from which it is called).
Return the dictionary implementing the current module namespace. For code within
functions, this is set when the function is defined and remains the same
regardless of where the function is called.


.. function:: hasattr(object, name)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the documentation for the :func:`globals` function.

0 comments on commit 1f70008

Please sign in to comment.