From: R. David Murray Date: Sat, 14 Nov 2009 22:27:22 +0000 (+0000) Subject: Fix print function conversion missed in merge of faq/programming update. X-Git-Tag: v3.2a1~2186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18163c3f141353ba307df5a3c2ad3dbd99634cec;p=python Fix print function conversion missed in merge of faq/programming update. --- diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst index 0bc9411895..e2e6f92ab1 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