[Python-checkins] r68605 - python/trunk/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Wed Jan 14 02:39:51 CET 2009


Author: raymond.hettinger
Date: Wed Jan 14 02:39:51 2009
New Revision: 68605

Log:
Fix-up indentation of sample code blocks for namedtuple mthod definitions.

Modified:
   python/trunk/Doc/library/collections.rst

Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst	(original)
+++ python/trunk/Doc/library/collections.rst	Wed Jan 14 02:39:51 2009
@@ -724,7 +724,7 @@
 
    Class method that makes a new instance from an existing sequence or iterable.
 
-.. doctest::
+   .. doctest::
 
       >>> t = [11, 22]
       >>> Point._make(t)
@@ -740,9 +740,7 @@
 .. method:: somenamedtuple._replace(kwargs)
 
    Return a new instance of the named tuple replacing specified fields with new
-   values:
-
-::
+   values::
 
       >>> p = Point(x=11, y=22)
       >>> p._replace(x=33)
@@ -756,7 +754,7 @@
    Tuple of strings listing the field names.  Useful for introspection
    and for creating new named tuple types from existing named tuples.
 
-.. doctest::
+   .. doctest::
 
       >>> p._fields            # view the field names
       ('x', 'y')


More information about the Python-checkins mailing list