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.
Dump the state (potentially modified) to given file.
Dump the state (potentially modified) to a string and return the string.
Return a State object given an object. Useful for testing.
Loads the state from a file like object. This does not import any modules.
Loads the state from a string object. This does not import any modules.
Creates an object from a state.
| Local name | Refers to |
|---|---|
| _extension_registry | pickle._extension_registry |
| _keep_alive | pickle._keep_alive |
| BUILD | pickle.BUILD |
| dumps | pickle.dumps |
| EXT1 | pickle.EXT1 |
| EXT2 | pickle.EXT2 |
| EXT4 | pickle.EXT4 |
| GLOBAL | pickle.GLOBAL |
| INST | pickle.INST |
| MARK | pickle.MARK |
| NEWOBJ | pickle.NEWOBJ |
| OBJ | pickle.OBJ |
| pickle | pickle |
| Pickler | pickle.Pickler |
| PicklingError | pickle.PicklingError |
| REDUCE | pickle.REDUCE |
| StringIO | cStringIO.StringIO |
| struct | struct |
| TupleType | pickle.TupleType |
| Unpickler | pickle.Unpickler |
| warnings | warnings |
Copyright © 2002-2008 Enthought, Inc.