Author zseil
Recipients
Date 2007-04-06.23:27:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Hi Raymond,

The problem is not in conversion functions, but in
slot inheritance.  If you run the example under a
debugger you can see that

MyInt->tp_as_number->nb_power == int->->tp_as_number->nb_power.

This happens because update_one_slot() doesn't fall
back to the generic slot function if a SlotWrapper in
type's dict has a different conversion function or if
it comes from an unrelated type.  The patch simply falls
back to the generic slot function in this case.
History
Date User Action Args
2007-08-23 14:52:56adminlinkissue1694663 messages
2007-08-23 14:52:56admincreate