diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-11-14 22:27:22 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-11-14 22:27:22 (GMT) |
commit | 18163c3f141353ba307df5a3c2ad3dbd99634cec (patch) | |
tree | 2a45d7881f072d377c2896d3687061d38dffdbf8 | |
parent | c04a69461483cb1a484863d69b1c4a0c4e6271d2 (diff) | |
download | cpython-18163c3f141353ba307df5a3c2ad3dbd99634cec.zip cpython-18163c3f141353ba307df5a3c2ad3dbd99634cec.tar.gz cpython-18163c3f141353ba307df5a3c2ad3dbd99634cec.tar.bz2 |
Fix print function conversion missed in merge of faq/programming update.
-rw-r--r-- | Doc/faq/programming.rst | 2 |
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 |