Module pickle :: Class Unpickler
[hide private]
[frames] | no frames]

_ClassType Unpickler

Instance Methods [hide private]
 
__init__(self, file)
This takes a file-like object for reading a pickle data stream.
 
load(self)
Read a pickled object representation from the open file.
 
marker(self)
 
load_eof(self)
 
load_proto(self)
 
load_persid(self)
 
load_binpersid(self)
 
load_none(self)
 
load_false(self)
 
load_true(self)
 
load_int(self)
 
load_binint(self)
 
load_binint1(self)
 
load_binint2(self)
 
load_long(self)
 
load_long1(self)
 
load_long4(self)
 
load_float(self)
 
load_binfloat(self, unpack=<function unpack at 0x404d209c>)
 
load_string(self)
 
load_binstring(self)
 
load_unicode(self)
 
load_binunicode(self)
 
load_short_binstring(self)
 
load_tuple(self)
 
load_empty_tuple(self)
 
load_tuple1(self)
 
load_tuple2(self)
 
load_tuple3(self)
 
load_empty_list(self)
 
load_empty_dictionary(self)
 
load_list(self)
 
load_dict(self)
 
_instantiate(self, klass, k)
 
load_inst(self)
 
load_obj(self)
 
load_newobj(self)
 
load_global(self)
 
load_ext1(self)
 
load_ext2(self)
 
load_ext4(self)
 
get_extension(self, code)
 
find_class(self, module, name)
 
load_reduce(self)
 
load_pop(self)
 
load_pop_mark(self)
 
load_dup(self)
 
load_get(self)
 
load_binget(self)
 
load_long_binget(self)
 
load_put(self)
 
load_binput(self)
 
load_long_binput(self)
 
load_append(self)
 
load_appends(self)
 
load_setitem(self)
 
load_setitems(self)
 
load_build(self)
 
load_mark(self)
 
load_stop(self)
Class Variables [hide private]
  dispatch = {}
Method Details [hide private]

__init__(self, file)
(Constructor)

 

This takes a file-like object for reading a pickle data stream.

The protocol version of the pickle is detected automatically, so no proto argument is needed.

The file-like object must have two methods, a read() method that takes an integer argument, and a readline() method that requires no arguments. Both methods should return a string. Thus file-like object can be a file object opened for reading, a StringIO object, or any other custom object that meets this interface.

load(self)

 

Read a pickled object representation from the open file.

Return the reconstituted object hierarchy specified in the file.