[issue6428] TypeError: __bool__ should return bool or int, returned int

Eric Smith report at bugs.python.org
Tue Jul 7 01:42:26 CEST 2009


Eric Smith <eric at trueblade.com> added the comment:

The patch looks good to me. In particular, removing the test for
using_len looks correct.

The assignment of "result = -1" after PyErr_Format isn't needed, but
doesn't hurt (and it was already there, anyway).

----------
keywords:  -needs review
nosy: +eric.smith

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6428>
_______________________________________


More information about the Python-bugs-list mailing list