Checking for nonzero-ness using Python C-API

Martin v. Loewis martin at v.loewis.de
Thu Nov 21 02:59:41 EST 2002


Gerhard Haering <gerhard.haering at gmx.de> writes:

> How do I check for the nonzero-ness of a PyObject using the Python C-API?

Use PyObject_IsTrue.

Regards,
Martin



More information about the Python-list mailing list