[Python-checkins] bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)

Raymond Hettinger webhook-mailer at python.org
Sun Oct 20 13:19:51 EDT 2019


https://github.com/python/cpython/commit/58ccd201fa74287ca9293c03136fcf1e19800ef9
commit: 58ccd201fa74287ca9293c03136fcf1e19800ef9
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-10-20T10:19:47-07:00
summary:

bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)

files:
A Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst
M Lib/collections/__init__.py

diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 2fc71e2991ab6..cec6c9781a15e 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -425,8 +425,6 @@ def __getnewargs__(self):
         '__slots__': (),
         '_fields': field_names,
         '_field_defaults': field_defaults,
-        # alternate spelling for backward compatibility
-        '_fields_defaults': field_defaults,
         '__new__': __new__,
         '_make': _make,
         '_replace': _replace,
diff --git a/Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst b/Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst
new file mode 100644
index 0000000000000..cf51d71da17fa
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst
@@ -0,0 +1,2 @@
+Remove misspelled attribute.  The 3.8 changelog noted that this would be
+removed in 3.9.



More information about the Python-checkins mailing list