On 14-6-2011 2:40, Chris Torek wrote:
Nonetheless, there is something at least slightly suspicious here:
[... snip explanations...]
Many thanks Chris, for the extensive reply. There's some useful knowledge in it.
My idea to call the base class reduce as the default fallback causes the
Hi,
I'm having a rather obscure problem with my custom __reduce__ function. I can't
use
__getstate__ to customize the pickling of my class because I want to change the
actual
type that is put into the pickle stream. So I started experimenting with
__reduce__, but
am running into some trouble.
In article 4df669ea$0$49182$e4fe5...@news.xs4all.nl
Irmen de Jong irmen.nos...@xs4all.nl wrote:
I've pasted my test code below. It works fine if 'substitute' is True,
but as soon as it is set to False, it is supposed to call the original
__reduce__ method of the base class. However, that seems to