Message1317

Author leouserz
Recipients
Date 2006-12-22.17:26:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
it seems that the missing piece may be that PyObject is not returning its __dict__ if it has state.  The relevant method is object__reduce.  The pickling protocol clarifies what the different objects mean when returned by __reduce__:
http://docs.python.org/lib/node321.html

From looking at cpython, if the Object has no state, None appears to be returned.  If it has state, the dictionary is returned.

leouser
History
Date User Action Args
2008-02-20 17:17:36adminlinkissue1604258 messages
2008-02-20 17:17:36admincreate