API Reference for Enthought Tool Suite 2.7.1

A special unpickler that gives you a state object and a special pickler that lets you re-pickle that state.

The nice thing about creating state objects is that it does not import any modules and does not create any instances. Instead of instances it creates State instances which have the same attributes as the real object. With this you can load a pickle (without even having the modules on the machine), modify it and re-pickle it back.

NOTE: This module is not likely to work for very complex pickles but
it should work for most common cases.

Classes

Function summary

Functions

Imported Names

Local nameRefers to
_extension_registrypickle._extension_registry
_keep_alivepickle._keep_alive
BUILDpickle.BUILD
dumpspickle.dumps
EXT1pickle.EXT1
EXT2pickle.EXT2
EXT4pickle.EXT4
GLOBALpickle.GLOBAL
INSTpickle.INST
MARKpickle.MARK
NEWOBJpickle.NEWOBJ
OBJpickle.OBJ
picklepickle
Picklerpickle.Pickler
PicklingErrorpickle.PicklingError
REDUCEpickle.REDUCE
StringIOcStringIO.StringIO
structstruct
TupleTypepickle.TupleType
Unpicklerpickle.Unpickler
warningswarnings

Copyright © 2002-2008 Enthought, Inc.