How can I parse False from c extension?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue Jun 12 05:21:51 EDT 2007
En Tue, 12 Jun 2007 05:07:13 -0300, Allen <Allen.Chenal at gmail.com>
escribió:
>> From python command, I call C extension method
>>>> import PyRPC
>>>> PyRPC.addBool(False)
>
> In C extension, I know parse integer value like this:
> PyArg_ParseTuple(args, "i", &nValue);
>
> But, how can I parse the False value?
Parse them as integers, with False==0 and True==1.
--
Gabriel Genellina
More information about the Python-list
mailing list