[issue32180] bool() vs len() > 0 on lists

Serhiy Storchaka report at bugs.python.org
Thu Nov 30 08:45:08 EST 2017


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I don't know what should mean PyObject_Bool(), but in C code you should use PyObject_IsTrue() for getting the boolean value of the object.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32180>
_______________________________________


More information about the Python-bugs-list mailing list