Re: [Python-Dev] BaseException pickle issue

2007-04-01 Thread Eric Huss
> I think that this is a bug, but removing those methods is not the right > solution. The __reduce__ method is needed because builtin exceptions > don't store their attributes in the __dict__ anymore; if you remove it, > then those attributes will be lost during pickling. The __setstate__ > metho

Re: [Python-Dev] BaseException pickle issue

2007-04-01 Thread Žiga Seilnacht
Eric Huss wrote: > Some subclasses of Exception are no longer pickleable in Python 2.5. An > example: > [snip] > > Does anyone have any thoughts about this? Is it a bug? > > I can imagine one could argue that exceptions should call the base > __init__ method to properly set args, but there are