diff options
author | Raymond Hettinger <python@rcn.com> | 2013-05-18 00:14:27 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2013-05-18 00:14:27 (GMT) |
commit | 4e0172fd9acf7c5e8f30905fc997f904adbe562f (patch) | |
tree | 4b3d9a89af022af0b132a00e73d41fb24a63f36d /Doc/library/collections.rst | |
parent | 8c03d832b33e02b575b78d53406a3f1ee2706f8d (diff) | |
download | cpython-4e0172fd9acf7c5e8f30905fc997f904adbe562f.zip cpython-4e0172fd9acf7c5e8f30905fc997f904adbe562f.tar.gz cpython-4e0172fd9acf7c5e8f30905fc997f904adbe562f.tar.bz2 |
Deprecate nametuple._asdict()
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 96c5aef..7063768 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -829,6 +829,9 @@ field names, the method and attribute names start with an underscore. .. versionchanged:: 3.1 Returns an :class:`OrderedDict` instead of a regular :class:`dict`. + .. deprecated:: 3.4 + Use ``vars(nt)`` or ``nt.__dict__`` instead. + .. method:: somenamedtuple._replace(kwargs) Return a new instance of the named tuple replacing specified fields with new @@ -845,8 +848,8 @@ field names, the method and attribute names start with an underscore. A string with the pure Python source code used to create the named tuple class. The source makes the named tuple self-documenting. - It can be printed, executed using :func:`exec`, or saved to a file - and imported. + It can be printed, executed using :func:`exec`, customized, or saved + to a file and imported. .. versionadded:: 3.3 |