On Nov 9, 2009, at 9:44 AM, Stefan Behnel wrote:

> Chris Colbert, 09.11.2009 18:40:
>> What was the rationality behind having to explicitly declare C
>> division, versus explicitly declaring python division?

This is a very good question, and if you look at the links below (and  
the discussions on several other mailing lists) you can see that the  
decision was not trivial.

> Python code semantics.
>
> http://wiki.cython.org/enhancements/division
> http://thread.gmane.org/gmane.comp.python.cython.devel/4769/focus=4938


One thing that does not come out as clear in the above (perhaps it was  
not as much on people's radar at the time) is that preserving Python  
semantics on C types is important for eventual type inference  
(especially if the inference engine grows stronger with time). Of  
course there are still possible overflow issues, but that's more  
"obvious."

- Robert

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

Reply via email to