diff options
author | Raymond Hettinger <python@rcn.com> | 2008-06-09 01:28:30 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-06-09 01:28:30 (GMT) |
commit | e98839a1f48b2915f1cc747884e64f4d6e4c8e7a (patch) | |
tree | c4ae6eafe55d4bd16e295b32c4334bb2cd57a7e6 /Doc/library | |
parent | f4fcdb6b8c0ee8bc4d2eee5ea3b848a4cd905ad6 (diff) | |
download | cpython-e98839a1f48b2915f1cc747884e64f4d6e4c8e7a.zip cpython-e98839a1f48b2915f1cc747884e64f4d6e4c8e7a.tar.gz cpython-e98839a1f48b2915f1cc747884e64f4d6e4c8e7a.tar.bz2 |
Issue3065: Fixed pickling of named tuples. Added tests.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/collections.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 2b6f9b1..cbad297 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -539,6 +539,9 @@ Example: if kwds: raise ValueError('Got unexpected field names: %r' % kwds.keys()) return result + <BLANKLINE> + def __getnewargs__(self): + return tuple(self) <BLANKLINE> x = property(itemgetter(0)) y = property(itemgetter(1)) |