savePickle

savePickle(data, file, version=4)

Save a python object as a binary file

Args: data (object): A python object
file (str): Path to the file

Returns: the path to the file where the object is stored

See also: readPickle

Examples: >>> from rlike import * >>> f = savePickle({‘a’: 0, ‘b’: [‘x’, ‘y’]}, file = ‘mydata.pickle’) >>> x = readPickle(‘mydata.pickle’) >>> x {‘a’: 0, ‘b’: [‘x’, ‘y’]}