From: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) Date: Tue, 2 Apr 2019 17:58:50 +0000 (+0530) Subject: bpo-32413: Add documentation that at the module level, locals(), globals() are the... X-Git-Tag: v3.8.0a4~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b;p=python bpo-32413: Add documentation that at the module level, locals(), globals() are the same dictionary (GH-5004) https://bugs.python.org/issue32413 --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 6342ee3bb0..613e4f74ac 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -843,7 +843,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