Browse Source
bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)
pull/16869/head
Raymond Hettinger
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
Lib/collections/__init__.py
-
Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst
|
|
|
@ -425,8 +425,6 @@ def namedtuple(typename, field_names, *, rename=False, defaults=None, module=Non |
|
|
|
'__slots__': (), |
|
|
|
'_fields': field_names, |
|
|
|
'_field_defaults': field_defaults, |
|
|
|
# alternate spelling for backward compatibility |
|
|
|
'_fields_defaults': field_defaults, |
|
|
|
'__new__': __new__, |
|
|
|
'_make': _make, |
|
|
|
'_replace': _replace, |
|
|
|
|
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
Remove misspelled attribute. The 3.8 changelog noted that this would be |
|
|
|
removed in 3.9. |