from functools import partial import pickle def f(a, b): print a, b partial_f = partial(f, b = 'hello') pickle.dumps(partial_f)