[Python-checkins] r76273 - in python/branches/release31-maint: Doc/faq/programming.rst
r.david.murray
python-checkins at python.org
Sat Nov 14 23:28:36 CET 2009
Author: r.david.murray
Date: Sat Nov 14 23:28:36 2009
New Revision: 76273
Log:
Merged revisions 76272 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r76272 | r.david.murray | 2009-11-14 17:27:22 -0500 (Sat, 14 Nov 2009) | 2 lines
Fix print function conversion missed in merge of faq/programming update.
........
Modified:
python/branches/release31-maint/ (props changed)
python/branches/release31-maint/Doc/faq/programming.rst
Modified: python/branches/release31-maint/Doc/faq/programming.rst
==============================================================================
--- python/branches/release31-maint/Doc/faq/programming.rst (original)
+++ python/branches/release31-maint/Doc/faq/programming.rst Sat Nov 14 23:28:36 2009
@@ -310,7 +310,7 @@
variable becomes local to that scope and shadows any similarly named variable
in the outer scope. Since the last statement in foo assigns a new value to
``x``, the compiler recognizes it as a local variable. Consequently when the
-earlier ``print x`` attempts to print the uninitialized local variable and
+earlier ``print(x)`` attempts to print the uninitialized local variable and
an error results.
In the example above you can access the outer scope variable by declaring it
More information about the Python-checkins
mailing list