I am wondering how deterministic is pickle: if I give it two equivalent objects, will they serialize to the same bytes?
There are some notes scattered around the web, but I haven’t got a synthesis of them.
Is there a practical case that fails the basic test like this?
(Edited for specificity after reply)
type(x) == type(y) and x == y and pickle.dumps(x) == pickle.dumps(y)