diff options
author | Raymond Hettinger <python@rcn.com> | 2015-08-30 16:17:02 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-08-30 16:17:02 (GMT) |
commit | 7f9f27d767e8abc164e0ac8656a3fdb2c7162ac9 (patch) | |
tree | 0ca297f6f9f67d0dc2f8dac7f4efe40879d4dafb /Doc/library/collections.rst | |
parent | 46c9c0d61cf45f52be69e0552b20ecfa9a7c4f42 (diff) | |
parent | 9157545c1179045dda9d3c23961a971d838afa3a (diff) | |
download | cpython-7f9f27d767e8abc164e0ac8656a3fdb2c7162ac9.zip cpython-7f9f27d767e8abc164e0ac8656a3fdb2c7162ac9.tar.gz cpython-7f9f27d767e8abc164e0ac8656a3fdb2c7162ac9.tar.bz2 |
merge
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index aeb1c52..d78ee79 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -842,10 +842,10 @@ field names, the method and attribute names start with an underscore. .. method:: somenamedtuple._asdict() Return a new :class:`OrderedDict` which maps field names to their corresponding - values. Note, this method is no longer needed now that the same effect can - be achieved by using the built-in :func:`vars` function:: + values:: - >>> vars(p) + >>> p = Point(x=11, y=22) + >>> p._asdict() OrderedDict([('x', 11), ('y', 22)]) .. versionchanged:: 3.1 |