[Cython] Problem with multiple assignment

Stefan Behnel stefan_ml at behnel.de
Wed Jul 23 07:36:57 CEST 2008


Hi,

Greg Ewing wrote:
> Dag Sverre Seljebotn wrote:
> 
>> Or, it might work to simply analyse the temp as int, which coerces
>> into the right thing on the individual assignments.
> 
> The way I think I would approach this is to consider True
> and False to be of a special 'boolean' type, which is a
> kind of C int that coerces into Py_True or Py_False when
> used in a Python context.

Cython has the "bint" C type for this.

Stefan


More information about the Cython-dev mailing list