summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorSrinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>2019-04-02 17:58:50 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-04-02 17:58:50 (GMT)
commit1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b (patch)
treedac4ec0b1b4760efaf301cfe3d2e4fe2d141f14b /Doc/library/functions.rst
parentfcef60f59d04c63b3540b4c4886226098c1bacd1 (diff)
downloadcpython-1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b.zip
cpython-1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b.tar.gz
cpython-1c5fa5af8a95f25119e45e40a4ed8183d06f4a5b.tar.bz2
bpo-32413: Add documentation that at the module level, locals(), globals() are the same dictionary (GH-5004)
https://bugs.python.org/issue32413
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 6342ee3..613e4f7 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