mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Update docs for namedtuple's renaming change.
This commit is contained in:
parent
756ab67a98
commit
6df48a3354
1 changed files with 1 additions and 1 deletions
|
@ -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
|
If *rename* is true, invalid fieldnames are automatically replaced
|
||||||
with positional names. For example, ``['abc', 'def', 'ghi', 'abc']`` is
|
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``.
|
``def`` and the duplicate fieldname ``abc``.
|
||||||
|
|
||||||
If *verbose* is true, the class definition is printed just before being built.
|
If *verbose* is true, the class definition is printed just before being built.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue