Package madgraph :: Package iolibs :: Module save_load_object :: Class UnPickler
[hide private]
[frames] | no frames]

Class UnPickler

source code

pickle.Unpickler --+
                   |
                  UnPickler

Treat problem of librarie

Instance Methods [hide private]
 
__init__(self, *args, **opts)
This takes a file-like object for reading a pickle data stream.
source code
 
find_class(self, module, name)
Find the correct path for the given function.
source code

Inherited from pickle.Unpickler: get_extension, load, load_append, load_appends, load_binfloat, load_binget, load_binint, load_binint1, load_binint2, load_binpersid, load_binput, load_binstring, load_binunicode, load_build, load_dict, load_dup, load_empty_dictionary, load_empty_list, load_empty_tuple, load_eof, load_ext1, load_ext2, load_ext4, load_false, load_float, load_get, load_global, load_inst, load_int, load_list, load_long, load_long1, load_long4, load_long_binget, load_long_binput, load_mark, load_newobj, load_none, load_obj, load_persid, load_pop, load_pop_mark, load_proto, load_put, load_reduce, load_setitem, load_setitems, load_short_binstring, load_stop, load_string, load_true, load_tuple, load_tuple1, load_tuple2, load_tuple3, load_unicode, marker

Inherited from pickle.Unpickler (private): _instantiate

Class Variables [hide private]

Inherited from pickle.Unpickler: dispatch

Method Details [hide private]

__init__(self, *args, **opts)
(Constructor)

source code 

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.

Overrides: pickle.Unpickler.__init__
(inherited documentation)

find_class(self, module, name)

source code 

Find the correct path for the given function. Due to ME call via MG some libraries might be messed up on the pickle This routine helps to find back which one we need.

Overrides: pickle.Unpickler.find_class