[Python-checkins] r76272 - python/branches/py3k/Doc/faq/programming.rst
r.david.murray
python-checkins at python.org
Sat Nov 14 23:27:23 CET 2009
Author: r.david.murray
Date: Sat Nov 14 23:27:22 2009
New Revision: 76272
Log:
Fix print function conversion missed in merge of faq/programming update.
Modified:
python/branches/py3k/Doc/faq/programming.rst
Modified: python/branches/py3k/Doc/faq/programming.rst
==============================================================================
--- python/branches/py3k/Doc/faq/programming.rst (original)
+++ python/branches/py3k/Doc/faq/programming.rst Sat Nov 14 23:27:22 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