Checking for nonzero-ness using Python C-API

Gerhard Häring haering_postgresql at gmx.de
Thu Nov 21 04:51:04 EST 2002


Martin v. Loewis wrote in comp.lang.python:
> 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.

Ah. Thanks.

-- Gerhard



More information about the Python-list mailing list