#!/usr/local/bin/python2 import pickle class C(object): def __init__(self, a): self.a = a c = C(1) z = pickle.dumps(c) c2 = pickle.loads(z) c3 = pickle.loads(z) print id(c1), id(c2), id(c3)