[Python-checkins] cpython (3.2): Issue #16015: Fix NameError doctest example in tutorial introduction.
chris.jerdonek
python-checkins at python.org
Tue Sep 25 04:38:26 CEST 2012
http://hg.python.org/cpython/rev/5f4841977bee
changeset: 79153:5f4841977bee
branch: 3.2
parent: 79149:485902ecf0ee
user: Chris Jerdonek <chris.jerdonek at gmail.com>
date: Mon Sep 24 19:28:59 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
@@ -94,8 +94,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