[Python-checkins] r75753 - in python/branches/release26-maint: Doc/library/collections.rst
georg.brandl
python-checkins at python.org
Tue Oct 27 14:12:17 CET 2009
Author: georg.brandl
Date: Tue Oct 27 14:12:17 2009
New Revision: 75753
Log:
Merged revisions 68605 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68605 | raymond.hettinger | 2009-01-14 02:39:51 +0100 (Mi, 14 Jan 2009) | 1 line
Fix-up indentation of sample code blocks for namedtuple mthod definitions.
........
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Doc/library/collections.rst
Modified: python/branches/release26-maint/Doc/library/collections.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/collections.rst (original)
+++ python/branches/release26-maint/Doc/library/collections.rst Tue Oct 27 14:12:17 2009
@@ -590,7 +590,7 @@
Class method that makes a new instance from an existing sequence or iterable.
-.. doctest::
+ .. doctest::
>>> t = [11, 22]
>>> Point._make(t)
@@ -606,9 +606,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)
@@ -622,7 +620,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