Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2cdee70 + da623ed commit 6c32b4aCopy full SHA for 6c32b4a
1 file changed
Doc/tutorial/classes.rst
@@ -730,7 +730,6 @@ built-in function; this example shows how it all works::
730
>>> next(it)
731
'c'
732
733
-
734
Traceback (most recent call last):
735
File "<stdin>", line 1, in ?
736
next(it)
@@ -742,7 +741,7 @@ returns an object with a :meth:`__next__` method. If the class defines
742
741
:meth:`__next__`, then :meth:`__iter__` can just return ``self``::
743
744
class Reverse:
745
- "Iterator for looping over a sequence backwards"
+ """Iterator for looping over a sequence backwards."""
746
def __init__(self, data):
747
self.data = data
748
self.index = len(data)
0 commit comments