Checking for nonzero-ness using Python C-API

Gerhard Haering gerhard.haering at gmx.de
Wed Nov 20 22:28:52 EST 2002


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

Is it possible at all? Or should I just require that I only get integers which
I can test for nonzero-ness much more easily? ;-)

-- Gerhard




More information about the Python-list mailing list