lampahome wrote:
> I make a class Wrapper inherited from dict and met problem when I want to
> pickle it.
>
> Is there anyway to make __getstate__ of Wrapper to output a normal
> dict?(Output a dict will help pickleing easily)
>
>
> === code ===
> import pickle
> class Wrapper(dict):
> def
lampahome writes:
> I make a class Wrapper inherited from dict and met problem when I want to
> pickle it.
>
> Is there anyway to make __getstate__ of Wrapper to output a normal
> dict?(Output a dict will help pickleing easily)
>
>
> === code ===
> import pickle
> class Wrapper(dict):
> def __
I make a class Wrapper inherited from dict and met problem when I want to
pickle it.
Is there anyway to make __getstate__ of Wrapper to output a normal
dict?(Output a dict will help pickleing easily)
=== code ===
import pickle
class Wrapper(dict):
def __getattr__(self, attr):
return