]> granicus.if.org Git - python/commitdiff
Merged revisions 76272 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Sat, 14 Nov 2009 22:28:36 +0000 (22:28 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Sat, 14 Nov 2009 22:28:36 +0000 (22:28 +0000)
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.
........

Doc/faq/programming.rst

index 0bc94118951c3fd4b64d65e9398fcc31d5614ada..e2e6f92ab12800756e03f20766d2a32615c97323 100644 (file)
@@ -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