]> granicus.if.org Git - python/commitdiff
Added a stronger warning about changing the dictionary returned by
authorGuido van Rossum <guido@python.org>
Thu, 18 Jun 1998 16:45:34 +0000 (16:45 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 18 Jun 1998 16:45:34 +0000 (16:45 +0000)
locals().

Doc/lib/libfuncs.tex

index 451c1a8e277598548965667d447ec904bf4d1c06..3104763b38bbfd620939416ea55ab69e7839a0c1 100644 (file)
@@ -334,8 +334,9 @@ returns \code{['a', 'b', 'c']} and \code{list( (1, 2, 3) )} returns
 
 \begin{funcdesc}{locals}{}
 Return a dictionary representing the current local symbol table.
-Inside a function, modifying this dictionary does not always have the
-desired effect.
+\strong{Warning:} the contents of this dictionary should not be
+modified; changes may not affect the values of local variables used by 
+the interpreter.
 \end{funcdesc}
 
 \begin{funcdesc}{long}{x}