Issue #15535: Fix pickling of named tuples.

This commit is contained in:
Raymond Hettinger 2013-05-03 02:24:15 -07:00
parent 8e596a765c
commit b98dcc1f53
4 changed files with 9 additions and 0 deletions

View file

@ -281,6 +281,10 @@ class {typename}(tuple):
'Return self as a plain tuple. Used by copy and pickle.'
return tuple(self)
def __getstate__(self):
'Exclude the OrderedDict from pickling'
return None
{field_defs}
'''