Message24797
Logged In: YES
user_id=4771
The bug is in weakrefobject:proxy_nonzero(), which calls the underlying object's nb_nonzero slot instead of going through the general PyObject_IsTrue() mecanism. Built-in types like list and dict don't have a nb_nonzero slot.
As a related bug, (Callable)ProxyType should implement tp_richcompare in addition to tp_compare. In fact, we should review the code to check if ProxyType knows about the most recent type slots... |
|
Date |
User |
Action |
Args |
2007-08-23 14:30:34 | admin | link | issue1170766 messages |
2007-08-23 14:30:34 | admin | create | |
|