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
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to