[issue13479] pickle too picky on re-defined classes

2011-12-11 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: Well, == whould allow the wanted feature by exception through meta classes for concerned classes: class X: ... a=1 ... Y=X class X: ... a=1 ... Y==X False class XCompare(type): ... def __eq__(self, other): ...

[issue13479] pickle too picky on re-defined classes

2011-12-11 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: What you're seeing here is just one of may things that go subtly wrong when you reload a class. I don't think we should fix this one aspect while leaving so many other bugs due to the same root cause. It would be better to focus your

[issue13479] pickle too picky on re-defined classes

2011-11-25 Thread kxroberto
Changes by kxroberto kxrobe...@users.sourceforge.net: -- title: pickle to picky on re-defined classes - pickle too picky on re-defined classes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13479

[issue13479] pickle too picky on re-defined classes

2011-11-25 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Hm, this change allows many other *undesirable* objects pass the test as well. I'd prefer to stick to the rule, when in doubt, raise an error. Maybe using == instead of 'is' as the test would be acceptable? -- nosy: +gvanrossum