Message31705
| 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:56 | admin | link | issue1694663 messages |
| 2007年08月23日 14:52:56 | admin | create |
|