(self)
return pickledict
Pickle.
Pickle.
Pickle .
def __getstate__(self):
        """Pickle."""
        pickledict = self.__dict__
        pickledict['_pos'] = self._fhandle.tell()
        # can't pickle memoryview objects
        del pickledict['_fhandle']
        return pickledict
def __getstate__ ( self ) : pickledict = self . __dict__ pickledict [ '_pos' ] = self . _fhandle . tell ( ) # can't pickle memoryview objects del pickledict [ '_fhandle' ] return pickledict