On 5/15/08, Greg Ewing <[EMAIL PROTECTED]> wrote:
>  My current thought is that this would apply to all division,
>  including C types. What do people think of that?

Im not sure at all, we could have

cdef int a = 5, b = 2

cdef int p = 5/2
cdef float q = 5/2
cdef object r = 5/2

print p, q, r

then we will get p->2, q->2.0, r->float(2.0) . As Cython/Pyrex are a
mix of Python and C, and IMHO the language is much more on the Python
side, perhaps matching more closelly the Python way (even if the
involved datatypes are all C) do really make sense.

-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to