Message46425
Logged In: YES
user_id=4771
Is your patch complete? There seem to be a lot of places in object.c that call tp_compare slots. Shouldn't we try to make sure that none of these places can ever be called with two different types?
It also looks like we have to do something special about a value of &_PyObject_SlotCompare in tp_compare, because this function from typeobject.c checks itself the type of its arguments and does specific things with them. This should be thought about.
Moreover there is the issue of the user subclassing built-in types, e.g. PyInt_Type.tp_compare is capable of comparing different user subclasses of "int" for each other. |
|
Date |
User |
Action |
Args |
2007-08-23 15:38:46 | admin | link | issue995939 messages |
2007-08-23 15:38:46 | admin | create | |
|