[Python-checkins] cpython (2.7): Issue #16015: Fix NameError doctest example in tutorial introduction.
chris.jerdonek
python-checkins at python.org
Tue Sep 25 04:38:29 CEST 2012
http://hg.python.org/cpython/rev/878c33d2f301
changeset: 79155:878c33d2f301
branch: 2.7
parent: 79151:f51d11405f1d
user: Chris Jerdonek <chris.jerdonek at gmail.com>
date: Mon Sep 24 19:33:32 2012 -0700
summary:
Issue #16015: Fix NameError doctest example in tutorial introduction.
files:
Doc/tutorial/introduction.rst | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -82,8 +82,7 @@
Variables must be "defined" (assigned a value) before they can be used, or an
error will occur::
- >>> # try to access an undefined variable
- ... n
+ >>> n # try to access an undefined variable
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'n' is not defined
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list