Skip to content

cPickle: adds support for class pickling customization #5985

@nthiery

Description

@nthiery

Original implementation:

The first patch imports the vanilla cPickle.c and test_cpickle.py
from python 2.5.2.p9 as sage.misc.cPickle, and updates accordingly the
cPickle imports throughout the sage library.

The second patch makes a very small modification to cPickle to allow
for customizing how class are pickled via metaclasses.

Final implementation: adds the second patch to the python spkg

See discussions on:

Thanks to Mike, Burcin, and Carl for suggestions on how to handle this.

CC: @sagetrac-sage-combinat @sagetrac-cwitty @saliola @burcin @craigcitro

Component: misc

Keywords: cPickle, pickling classes

Author: Craig Citro, Nicolas M. Thiéry

Reviewer: Craig Citro, Nicolas M. Thiéry

Merged: sage-4.2.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/5985

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions