I want to pickle an object and a second object that references the first. When I naively pickle/unpickle the two objects, the reference becomes a copy. How do I preserve t
Well, can you do:
bar2 = pickle.load(f) foo2 = bar2.foo_ref
Let pickle handle the link for you.