[Python-checkins] bpo-35864: fix namedtuple._asdict() docstring (GH-11720)

Raymond Hettinger webhook-mailer at python.org
Fri Feb 1 15:39:01 EST 2019


https://github.com/python/cpython/commit/85d83ec7c99727476c79feb5c34c65264a99144e
commit: 85d83ec7c99727476c79feb5c34c65264a99144e
branch: master
author: Amador Pahim <amador at pahim.org>
committer: Raymond Hettinger <rhettinger at users.noreply.github.com>
date: 2019-02-01T12:38:57-08:00
summary:

bpo-35864: fix namedtuple._asdict() docstring (GH-11720)

files:
M Lib/collections/__init__.py

diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py
index 835cc363d10a..aee79b931602 100644
--- a/Lib/collections/__init__.py
+++ b/Lib/collections/__init__.py
@@ -429,7 +429,7 @@ def __repr__(self):
     _dict, _zip = dict, zip
 
     def _asdict(self):
-        'Return a new OrderedDict which maps field names to their values.'
+        'Return a new dict which maps field names to their values.'
         return _dict(_zip(self._fields, self))
 
     def __getnewargs__(self):



More information about the Python-checkins mailing list