summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-05-01 20:37:46 (GMT)
committerGeorg Brandl <georg@python.org>2011-05-01 20:37:46 (GMT)
commit6c32b4a601951cd29dbc89f9bb9f6047a80bd18c (patch)
tree2304912635c80902858bbc7a34bd113190fd94ad /Doc
parent2cdee708e9ec4c8445f2a269b87efb9a148e097f (diff)
parentda623ed9f43a13bc285a7e29ae8774d29c481332 (diff)
downloadcpython-6c32b4a601951cd29dbc89f9bb9f6047a80bd18c.zip
cpython-6c32b4a601951cd29dbc89f9bb9f6047a80bd18c.tar.gz
cpython-6c32b4a601951cd29dbc89f9bb9f6047a80bd18c.tar.bz2
merge with 3.2
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/classes.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index 04abcf3..3e547a5 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -730,7 +730,6 @@ built-in function; this example shows how it all works::
>>> next(it)
'c'
>>> next(it)
-
Traceback (most recent call last):
File "<stdin>", line 1, in ?
next(it)
@@ -742,7 +741,7 @@ returns an object with a :meth:`__next__` method. If the class defines
:meth:`__next__`, then :meth:`__iter__` can just return ``self``::
class Reverse:
- "Iterator for looping over a sequence backwards"
+ """Iterator for looping over a sequence backwards."""
def __init__(self, data):
self.data = data
self.index = len(data)