Dag Sverre Seljebotn, 03.12.2010 20:04:
> I do have a much bigger problem with the naming here. I find
> this very little user-friendly:
>
> cdef complex x # x is Python object
> cdef double complex x # same precision but in C
> cdef float complex x # single precision in C
>
> I really do feel that "int" has kind of set the precedent here, and that
> if only "complex" is made available it should be as "double complex" or
> similar.

I would argue that the precendent is actually "float". We already (safely) 
alias Python's "float" type to C's "double" type. Doing the same thing for 
"complex" won't hurt as long as it keeps the same interface, would it?

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to