diff options
Diffstat (limited to 'Lib/collections.py')
-rw-r--r-- | Lib/collections.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/collections.py b/Lib/collections.py index b904980..2b6abd8 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -268,6 +268,8 @@ class {typename}(tuple): 'Return a new OrderedDict which maps field names to their values' return OrderedDict(zip(self._fields, self)) + __dict__ = property(_asdict) + def _replace(_self, **kwds): 'Return a new {typename} object replacing specified fields with new values' result = _self._make(map(kwds.pop, {field_names!r}, _self)) |