Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
use 'rb' mode for protocol 2, 'r' for protocol 0

        def loadObject(pickleFilename, protocol=-1, mode='rb'):
    '''
    use 'rb' mode for protocol 2, 'r' for protocol 0
    '''
    import cPickle
    fh = open(pickleFilename, mode)
    obj = cPickle.load(fh)
    fh.close()
    return obj
        


src/p/y/pyUblox-HEAD/satelliteData.py   pyUblox(Download)
        self.position_estimate = None
 
        self.ephemeris = util.loadObject('ephemeris.dat')
        if self.ephemeris is None:
            self.ephemeris = {}
 
        self.ionospheric = util.loadObject('ionospheric.dat')

src/p/y/pyUblox-HEAD/errlog_plot.py   pyUblox(Download)
 
if opts.load_pos is not None:
    t_first = util.loadObject(opts.load_pos + '.stamp')
    if opts.plot_clusters >= 0 or opts.plot_skymap >= 0:
        sat_el, sat_az, sat_res = util.loadObject(opts.load_pos)

src/r/e/reciprocal_smallest_distance-1.1.6/rsd/rsd.py   reciprocal_smallest_distance(Download)
    returns: mapping object from query id to hits.  used to be a bsddb, now is a dict.
    '''
    return util.loadObject(path)
 
 

src/r/e/reciprocal_smallest_distance-HEAD/rsd/rsd.py   reciprocal_smallest_distance(Download)
    returns: mapping object from query id to hits.  used to be a bsddb, now is a dict.
    '''
    return util.loadObject(path)