Message8327
Logged In: YES
user_id=118203
it's a shame the tabs do not appear above...
--- Solution
class metaclass(type):
def __getattribute__(self, name):
if name in ["__reduce__", "__getstate__",
"__setstate__"]:
return lambda s=self, f=getattr(type(self),
name): f(s)
return type.__getattribute__(self, name)
this fixed my bug, but it may not work for everybody. My
suggestion is if you are to pickle a new style class, you
should call
type(new_style_class).__reduce__(new_style_class) instead
of new_style_class.__reduce__()
|
|
Date |
User |
Action |
Args |
2007-08-23 13:58:10 | admin | link | issue494904 messages |
2007-08-23 13:58:10 | admin | create | |
|