]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update docs for namedtuple's renaming change.
authorRaymond Hettinger <python@rcn.com>
Thu, 2 Apr 2009 22:37:59 +0000 (22:37 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 2 Apr 2009 22:37:59 +0000 (22:37 +0000)
Doc/library/collections.rst

index 50817b0709f0bb1d016f3505d7ced3593aef79df..2e6a537828164cc0e7a7f22189388954e94cf271 100644 (file)
@@ -625,7 +625,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.