Skip to content

Instantly share code, notes, and snippets.

View zhangyuteng's full-sized avatar

Oren Pasquin zhangyuteng

View GitHub Profile
@zhangyuteng
zhangyuteng / compressed_pickle.py
Created March 29, 2018 12:13 — forked from cwidmer/compressed_pickle.py
save/load compressed pickled objects in python
import cPickle
import bz2
def save(filename, myobj):
"""
save object to file using pickle
@param filename: name of destination file
@type filename: str