Craig Citro craigci...@gmail.com 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__
Craig Citro craigci...@gmail.com 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
contributed to this release, including:
* David Barnett
* Stefan Behnel
* Chuck Blake
* Robert Bradshaw
* Craig Citro
* Bryan Cole
* Lisandro Dalcin
* Eric Firing
* Danilo Freitas
* Christoph Gohlke
* Dag Sverre Seljebotn
* Kurt Smith
* Erik Tollerud
* Carl Witty
-cc
--
http
New submission from Craig Citro craigci...@gmail.com:
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