[Python-checkins] cpython (merge 3.2 -> default): merge with 3.2

georg.brandl python-checkins at python.org
Sun May 1 22:38:02 CEST 2011


http://hg.python.org/cpython/rev/659424ca36ac
changeset:   69739:659424ca36ac
parent:      69736:b9e04043568e
parent:      69738:13878873ccc7
user:        Georg Brandl <georg at python.org>
date:        Sun May 01 22:37:46 2011 +0200
summary:
  merge with 3.2

files:
  Doc/tutorial/classes.rst |  3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -730,7 +730,6 @@
    >>> next(it)
    'c'
    >>> next(it)
-
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
        next(it)
@@ -742,7 +741,7 @@
 :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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list