[issue7689] Pickling of classes with a metaclass and copy_reg

Craig Citro report at bugs.python.org
Tue Oct 4 08:57:21 CEST 2011


Craig Citro <craigcitro at 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__` function with just `return cmp(type(self), type(other))`. On the flipside, I could see an argument for adding *more* content to the test, but that seemed like overkill.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7689>
_______________________________________


More information about the Python-bugs-list mailing list