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

Skip to content

Commit 6c32b4a

Browse files
committed
merge with 3.2
2 parents 2cdee70 + da623ed commit 6c32b4a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/tutorial/classes.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,6 @@ built-in function; this example shows how it all works::
730730
>>> next(it)
731731
'c'
732732
>>> next(it)
733-
734733
Traceback (most recent call last):
735734
File "<stdin>", line 1, in ?
736735
next(it)
@@ -742,7 +741,7 @@ returns an object with a :meth:`__next__` method. If the class defines
742741
:meth:`__next__`, then :meth:`__iter__` can just return ``self``::
743742

744743
class Reverse:
745-
"Iterator for looping over a sequence backwards"
744+
"""Iterator for looping over a sequence backwards."""
746745
def __init__(self, data):
747746
self.data = data
748747
self.index = len(data)

0 commit comments

Comments
 (0)