diff options
author | Raymond Hettinger <python@rcn.com> | 2011-06-03 06:40:24 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-06-03 06:40:24 (GMT) |
commit | 3d89057ff80261e8960420305b432cd9783bb4e2 (patch) | |
tree | 84778cfe5a4fd0db53d202bae6b9c5b1cdcd648b /Doc | |
parent | 9028928156b187eb0d684233960c568b46f11088 (diff) | |
download | cpython-3d89057ff80261e8960420305b432cd9783bb4e2.zip cpython-3d89057ff80261e8960420305b432cd9783bb4e2.tar.gz cpython-3d89057ff80261e8960420305b432cd9783bb4e2.tar.bz2 |
Fix named tuples to work with vars().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/collections.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index f3b068c..79db55e 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -623,6 +623,8 @@ they add the ability to access fields by name instead of position index. 'Return a new OrderedDict which maps field names to their values' return OrderedDict(zip(self._fields, self)) <BLANKLINE> + __dict__ = property(_asdict) + <BLANKLINE> def _replace(_self, **kwds): 'Return a new Point object replacing specified fields with new values' result = _self._make(map(kwds.pop, ('x', 'y'), _self)) |