Message39217
As noted in Bug #527816, if you call the __nonzero__
method of a builtin type directly it will SIGSEGV you.
The reason is that internally the nonzero slot is
being called with "PyObject *(*) (PyObject *)" casting,
rather than the actual "int (*) (PyObject *)". This
small patch adds a new static function that's just a
copy of wrap_hashfunc and gets it called properly later on.
If this isn't how we want bugfixes handled, please
advise and I'll revise. |
|
Date |
User |
Action |
Args |
2007-08-23 15:11:33 | admin | link | issue528038 messages |
2007-08-23 15:11:33 | admin | create | |
|