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 <rep...@bugs.python.org> <http://bugs.python.org/issue15535> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com