def fromPickle(filename):
 f = open(filename)
 contents = cPickle.load(f)
 f.close()
 return contents

def fromPickle ( filename ) : f = open ( filename ) contents = cPickle . load ( f ) f . close ( ) return contents
load data from a pickle file simple wrapper of the cpickle module in core python .