]> granicus.if.org Git - python/commitdiff
Update docs for namedtuple's renaming change.
authorRaymond Hettinger <python@rcn.com>
Thu, 2 Apr 2009 22:34:17 +0000 (22:34 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 2 Apr 2009 22:34:17 +0000 (22:34 +0000)
Doc/library/collections.rst

index c396f176c89251b10772a420d473fb11c2b078b8..ec0ae4b42fb4efa912a889668adbaa7977b3b7c8 100644 (file)
@@ -649,7 +649,7 @@ they add the ability to access fields by name instead of position index.
 
    If *rename* is true, invalid fieldnames are automatically replaced
    with positional names.  For example, ``['abc', 'def', 'ghi', 'abc']`` is
-   converted to ``['abc', '_2', 'ghi', '_4']``, eliminating the keyword
+   converted to ``['abc', '_1', 'ghi', '_3']``, eliminating the keyword
    ``def`` and the duplicate fieldname ``abc``.
 
    If *verbose* is true, the class definition is printed just before being built.