I read that pyhton will recycle IDs, meaning that a new object can end up with the ID of one that previously existed and was distroyed. I also read about pickle:
The pickle module keeps track of the objects it has already serialized, so that later references to the same object won’t be serialized again. marshal doesn’t do this.
If I hold an instance of a Pickler open for several minutes writing to a single file as information comes in, and discard it immediately after calling Pickler.dump(obj), is there a risk that a new obj will be given the id of another that's already been written to in the same file and so accidently the wrong thing is written?