Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ee1467

Browse files
committed
Merged revisions 76272 via svnmerge from
svn+ssh://[email protected]/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. ........
1 parent 5f1770a commit 0ee1467

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/faq/programming.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ This is because when you make an assignment to a variable in a scope, that
310310
variable becomes local to that scope and shadows any similarly named variable
311311
in the outer scope. Since the last statement in foo assigns a new value to
312312
``x``, the compiler recognizes it as a local variable. Consequently when the
313-
earlier ``print x`` attempts to print the uninitialized local variable and
313+
earlier ``print(x)`` attempts to print the uninitialized local variable and
314314
an error results.
315315

316316
In the example above you can access the outer scope variable by declaring it

0 commit comments

Comments
 (0)