| pickle (version 1.56) | index /usr/lib/python2.2/pickle.py |
Create portable serialized representations of Python objects.
See module cPickle for a (much) faster implementation.
See module copy_reg for a mechanism for registering custom picklers.
Classes:
Pickler
Unpickler
Functions:
dump(object, file)
dumps(object) -> string
load(file) -> object
loads(string) -> object
Misc variables:
__version__
format_version
compatible_formats
| Modules | ||||||
| ||||||
| Classes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||
| ||
| Data | ||
| APPEND = 'a' APPENDS = 'e' BINFLOAT = 'G' BINGET = 'h' BININT = 'J' BININT1 = 'K' BININT2 = 'M' BINPERSID = 'Q' BINPUT = 'q' BINSTRING = 'T' BINUNICODE = 'X' BUILD = 'b' DICT = 'd' DUP = '2' EMPTY_DICT = '}' EMPTY_LIST = ']' EMPTY_TUPLE = ')' FLOAT = 'F' GET = 'g' GLOBAL = 'c' INST = 'i' INT = 'I' LIST = 'l' LONG = 'L' LONG_BINGET = 'j' LONG_BINPUT = 'r' MARK = '(' NONE = 'N' OBJ = 'o' PERSID = 'P' POP = '0' POP_MARK = '1' PUT = 'p' PyStringMap = None REDUCE = 'R' SETITEM = 's' SETITEMS = 'u' SHORT_BINSTRING = 'U' STOP = '.' STRING = 'S' StringTypes = (<type 'str'>, <type 'unicode'>) TUPLE = 't' UNICODE = 'V' __all__ = ['PickleError', 'PicklingError', 'UnpicklingError', 'Pickler', 'Unpickler', 'dump', 'dumps', 'load', 'loads', 'APPEND', 'APPENDS', 'BINFLOAT', 'BINGET', 'BININT', 'BININT1', 'BININT2', 'BINPERSID', 'BINPUT', 'BINSTRING', 'BINUNICODE', ...] __file__ = '/usr/lib/python2.2/pickle.pyc' __name__ = 'pickle' __version__ = '$Revision: 1.56 $' classmap = {} compatible_formats = ['1.0', '1.1', '1.2'] dispatch_table = {<type '_sre.SRE_Pattern'>: <function _pickle>, <type 'complex'>: <function pickle_complex>, <type 'parser.st'>: <built-in function _pickler>} format_version = '1.3' safe_constructors = {<built-in function sequence2st>: 1, <function _compile>: 1, <type 'complex'>: 1} x = 'sys' | ||