]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36321: Fix misspelled attribute name in namedtuple() (GH-16858)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 20 Oct 2019 17:19:47 +0000 (10:19 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2019 17:19:47 +0000 (10:19 -0700)
Lib/collections/__init__.py
Misc/NEWS.d/next/Library/2019-10-19-21-41-20.bpo-36321.CFlxfy.rst [new file with mode: 0644]

index 2fc71e2991ab603f481006ef851c1075ad795ee3..cec6c9781a15e05c212dfe4a3f1ca9255cc1fc1d 100644 (file)
@@ -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,
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 (file)
index 0000000..cf51d71
--- /dev/null
@@ -0,0 +1,2 @@
+Remove misspelled attribute.  The 3.8 changelog noted that this would be
+removed in 3.9.