Mike Meyer <m...@users.sourceforge.net> added the comment:

True. But hat's why it was a QAD hack - all I did was make sure it didn't blow 
up on the 
test code, and that it passed the provided unit tests.

It really needs to walk the class tree. So something like  
hasattr(inst.__class__, 
'__setstate__') is more likely to be correct.

And yes, the pickle unit tests apparently don't test the __*state__ routines, 
but that's a 
different bug.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5370>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to