Message31705
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. |
|
Date |
User |
Action |
Args |
2007-08-23 14:52:56 | admin | link | issue1694663 messages |
2007-08-23 14:52:56 | admin | create | |
|