Thomas Miedema added the comment:
Added a better testcase.
--
title: Fix pickling of named tuples in 2.7.3 - Fix pickling of named tuples in
2.7.3 (BUG)
Added file: http://bugs.python.org/file27077/namedtuple_pickle_fix.patch
___
Python tracker
Changes by Thomas Miedema thomasmied...@gmail.com:
Removed file: http://bugs.python.org/file26662/namedtuple_pickle_fix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15535
___
Changes by Raymond Hettinger raymond.hettin...@gmail.com:
--
assignee: - rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15535
___
___
Thomas Miedema added the comment:
Attached is a script that shows the problem at hand.
Note that my remark that this bug could result in very large pickled files when
using nested namedtuples seems not te be true.
--
Added file:
New submission from Thomas Miedema:
Pickling a namedtuple Point(x=10, y=20, z=30) in Python 2.7.2 with protocol
level 0 would result in something like the following output:
ccopy_reg
_reconstructor
p0
(c__main__
Point
p1
c__builtin__
tuple
p2
(I10
I20
I30
tp3
tp4