Craig Citro added the comment:
Antoine -- ah, that makes sense. Is that the only blocker? I've let this patch
rot on the vine a long time; if so, I'll happily switch `__eq__` back to
`__cmp__` and re-post if it'll get submitted.
--
___
Craig Citro added the comment:
Antoine -- why do you want to switch "if r" for "if not r"?
If we did, the test would just confirm that the unpicked object was of the same
type as the original; if we were going to do that, we might as well just
replace the whole `__cmp__
New submission from Craig Citro :
Currently, it's impossible to use the usual pickle mechanisms to pickle a
dynamically created class, even if the user requests a different pickling
mechanism via copy_reg. The attached patch makes this customization possible by
simply transposing two b