]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-32413: Add documentation that at the module level, locals(), globals() are the...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 2 Apr 2019 18:14:50 +0000 (11:14 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Apr 2019 18:14:50 +0000 (11:14 -0700)
https://bugs.python.org/issue32413
(cherry picked from commit 1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b)

Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Doc/library/functions.rst

index 2ed6fb3ba2b0697816263261abeeebcd695c371b..11147525d7e829d7a1d591adf77f88d4b4b47ad4 100644 (file)
@@ -842,7 +842,8 @@ are always available.  They are listed here in alphabetical order.
 
    Update and return a dictionary representing the current local symbol table.
    Free variables are returned by :func:`locals` when it is called in function
-   blocks, but not in class blocks.
+   blocks, but not in class blocks. Note that at the module level, :func:`locals`
+   and :func:`globals` are the same dictionary.
 
    .. note::
       The contents of this dictionary should not be modified; changes may not