diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-03-18 07:27:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-18 07:27:39 (GMT) |
commit | 23581c018fceb607fe829a41c6fbe81b4d502cab (patch) | |
tree | 9c8f76fb525ad1ac974a08ebac92812db7feeefa /Doc | |
parent | 6a16b18224fa98f6d192aa5014affeccc0376eb3 (diff) | |
download | cpython-23581c018fceb607fe829a41c6fbe81b4d502cab.zip cpython-23581c018fceb607fe829a41c6fbe81b4d502cab.tar.gz cpython-23581c018fceb607fe829a41c6fbe81b4d502cab.tar.bz2 |
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index daa7414..64de970 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -953,14 +953,14 @@ field names, the method and attribute names start with an underscore. >>> Pixel(11, 22, 128, 255, 0) Pixel(x=11, y=22, red=128, green=255, blue=0) -.. attribute:: somenamedtuple._fields_defaults +.. attribute:: somenamedtuple._field_defaults Dictionary mapping field names to default values. .. doctest:: >>> Account = namedtuple('Account', ['type', 'balance'], defaults=[0]) - >>> Account._fields_defaults + >>> Account._field_defaults {'balance': 0} >>> Account('premium') Account(type='premium', balance=0) |