[issue15535] Fix pickling efficiency of named tuples in 2.7.3

Raymond Hettinger report at bugs.python.org
Sat Sep 1 02:29:20 CEST 2012


Raymond Hettinger added the comment:

FWIW, all pickle protocol levels are affected:

Point = colletions.namedtuple('Point', ['x', 'y', 'z'])
for proto in range(3):
    pickletools.dis(dumps(Point(10, 20, 30), proto))

I'll look at the proposed fix in more detail when I get a chance -- we want to make sure that subclasses aren't adversely affected and that there aren't any other unintended side-effects.

----------
title: Fix pickling of named tuples in 2.7.3 (BUG) -> Fix pickling  efficiency of named tuples in 2.7.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15535>
_______________________________________


More information about the Python-bugs-list mailing list