summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-11-14 22:28:36 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-11-14 22:28:36 (GMT)
commit0ee1467704e0c6012df3b4da6dfceeaf61bc701d (patch)
treeb391d955428d2145682b3a2fb532f2ce7c9abadc /Doc
parent5f1770a63fcaef697c5fe411b26cfc711dfce641 (diff)
downloadcpython-0ee1467704e0c6012df3b4da6dfceeaf61bc701d.zip
cpython-0ee1467704e0c6012df3b4da6dfceeaf61bc701d.tar.gz
cpython-0ee1467704e0c6012df3b4da6dfceeaf61bc701d.tar.bz2
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. ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/faq/programming.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 0bc9411..e2e6f92 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -310,7 +310,7 @@ This is because when you make an assignment to a variable in a scope, that
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