Thecopy_reg module provides support for thepickle andcPickle modules. Thecopy module is likely to use this in thefuture as well. It provides configuration information about objectconstructors which are not classes. Such constructors may be factoryfunctions or class instances.
The optionalconstructor parameter, if provided, is a callable object which can be used to reconstruct the object when called with the tuple of arguments returned byfunction at pickling time.TypeError will be raised ifobject is a class orconstructor is not callable.
See thepickle module for more details on the interface expected offunction andconstructor.
| Python Library Reference |