cpython: Lib/collections.py diff (original) (raw)

Mercurial > cpython

diff Lib/collections.py @ 70608:26d5f022eb1a 2.7

Fix named tuples to work with vars().

author Raymond Hettinger python@rcn.com
date Thu, 02 Jun 2011 20:40:35 -0700
parents c64c41974d1f
children aca1a271c4fc

line wrap: on

line diff

--- a/Lib/collections.py +++ b/Lib/collections.py @@ -312,6 +312,7 @@ def namedtuple(typename, field_names, ve def _asdict(self): 'Return a new OrderedDict which maps field names to their values' return OrderedDict(zip(self._fields, self)) \n