[issue10880] do_mkvalue and 'boolean'
Amaury Forgeot d'Arc
report at bugs.python.org
Sun Feb 27 10:53:25 CET 2011
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
This test is wrong::
if (!PyBool_Check(test_var) && test_var == Py_False)
the second part is never executed.
if (test_var != Py_False)
is enough to test the return value.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10880>
_______________________________________
More information about the Python-bugs-list
mailing list