Trees | Indices | Help |
---|
|
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. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) dumps(object) -> string load(file) -> object loads(string) -> object Misc variables: __version__ format_version compatible_formats
Version: $Revision: 72223 $
|
|||
PickleError A common base class for the other pickling exceptions. |
|||
Pickler | |||
PicklingError This exception is raised when an unpicklable object is passed to the dump() method. |
|||
Unpickler | |||
UnpicklingError This exception is raised when there is a problem unpickling an object, such as a security violation. |
|||
_EmptyClass | |||
_Stop |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
APPEND =
|
|||
APPENDS =
|
|||
BINFLOAT =
|
|||
BINGET =
|
|||
BININT =
|
|||
BININT1 =
|
|||
BININT2 =
|
|||
BINPERSID =
|
|||
BINPUT =
|
|||
BINSTRING =
|
|||
BINUNICODE =
|
|||
BUILD =
|
|||
DICT =
|
|||
DUP =
|
|||
EMPTY_DICT =
|
|||
EMPTY_LIST =
|
|||
EMPTY_TUPLE =
|
|||
EXT1 =
|
|||
EXT2 =
|
|||
EXT4 =
|
|||
FALSE =
|
|||
FLOAT =
|
|||
GET =
|
|||
GLOBAL =
|
|||
HIGHEST_PROTOCOL = 2
|
|||
INST =
|
|||
INT =
|
|||
LIST =
|
|||
LONG =
|
|||
LONG1 =
|
|||
LONG4 =
|
|||
LONG_BINGET =
|
|||
LONG_BINPUT =
|
|||
MARK =
|
|||
NEWFALSE =
|
|||
NEWOBJ =
|
|||
NEWTRUE =
|
|||
NONE =
|
|||
OBJ =
|
|||
PERSID =
|
|||
POP =
|
|||
POP_MARK =
|
|||
PROTO =
|
|||
PUT =
|
|||
PyStringMap = None hash(x) |
|||
REDUCE =
|
|||
SETITEM =
|
|||
SETITEMS =
|
|||
SHORT_BINSTRING =
|
|||
STOP =
|
|||
STRING =
|
|||
StringTypes =
|
|||
TRUE =
|
|||
TUPLE =
|
|||
TUPLE1 =
|
|||
TUPLE2 =
|
|||
TUPLE3 =
|
|||
UNICODE =
|
|||
__package__ = None hash(x) |
|||
_extension_cache =
|
|||
_extension_registry =
|
|||
_inverted_registry =
|
|||
_tuplesize2code =
|
|||
classmap =
|
|||
compatible_formats =
|
|||
dispatch_table =
|
|||
format_version =
|
|
Keeps a reference to the object x in the memo. Because we remember objects by their id, we have to assure that possibly temporary objects are kept alive by referencing them. We store a reference at the id of the memo, which should normally not be used unless someone tries to deepcopy the memo itself... |
Decode a long from a two's complement little-endian binary string. >>> decode_long('') 0L >>> decode_long("\xff\x00") 255L >>> decode_long("\xff\x7f") 32767L >>> decode_long("\x00\xff") -256L >>> decode_long("\x00\x80") -32768L >>> decode_long("\x80") -128L >>> decode_long("\x7f") 127L |
Encode a long to a two's complement little-endian binary string. Note that 0L is a special case, returning an empty string, to save a byte in the LONG1 pickling context. >>> encode_long(0L) '' >>> encode_long(255L) '\xff\x00' >>> encode_long(32767L) '\xff\x7f' >>> encode_long(-256L) '\x00\xff' >>> encode_long(-32768L) '\x00\x80' >>> encode_long(-128L) '\x80' >>> encode_long(127L) '\x7f' >>> |
Figure out the module in which a function occurs. Search sys.modules for the module. Cache in classmap. Return a module name. If the function cannot be found, return "__main__". |
|
dispatch_table
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Dec 5 22:37:12 2016 | http://epydoc.sourceforge.net |