This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mathematician
Recipients
Date 2001-12-19.05:00:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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__()
History
Date User Action Args
2007-08-23 13:58:10adminlinkissue494904 messages
2007-08-23 13:58:10admincreate