(self, filename)
Write the snapshot into a file.
Write the snapshot into a file.
Write the snapshot into a file .
def dump(self, filename):
        """
        Write the snapshot into a file.
        """
        with open(filename, "wb") as fp:
            pickle.dump(self, fp, pickle.HIGHEST_PROTOCOL)
def dump ( self , filename ) : with open ( filename , "wb" ) as fp : pickle . dump ( self , fp , pickle . HIGHEST_PROTOCOL )