[Numpy-discussion] Poll: Semantics for % in Cython

Sturla Molden sturla@molden...
Fri Mar 13 06:12:01 CDT 2009

> On Fri, Mar 13, 2009 at 01:41, Dag Sverre Seljebotn

>>>   # Explicitly declared C types?
>>>   cdef long i, j, k
>>>   i = -1
>>>   j = 5
>>>   k = i % j
>> This one is what I'm really asking about.
> My opinion on this is that C semantics have been explicitly requested,
> so they should be used.

I agree with this. I feel that "cdef long i, j, k" is a request to "step
into C". But here I feel the Cython team is trying to make me step into a
broken C.

Sturla Molden

More information about the Numpy-discussion mailing list