[Cython] #303 + simplifying type system
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Tue May 26 23:03:57 CEST 2009
Lisandro Dalcin wrote:
> Wow... I'm very sorry. I got it totally wrong ...
>
> If the change you are proposing about simplifying the type system only
> affect that, I'm actually +1 on your proposal. The canonical Python
> way is a mess in the context of Cython.
>
> I would just ask for the following:
>
> 1) When going from C to Python, for Python 2.X, try to avoid returning
> a PyLong (basically dispach proper calls using
> sizeof(type)<=sizeof(long) )
>
> 2) Use __Pyx_T_FLOATING, just to avoid confussion.
>
>
> Of course, other way would be to just use the transform I proposed
> previously. I do not expect it to impact performance.
To follow up here: Since Robert was concerned and I'm too lazy to
benchmark, I redid it. (This also fixes the recently reported bug of
course.)
http://hg.cython.org/cython/rev/11e826f95cde
--
Dag Sverre
More information about the Cython-dev
mailing list