diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 2ed6fb3ba2b0697..11147525d7e829d 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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