[Cython] __future__.division on constants and C integers
Robert Bradshaw
robertwb at math.washington.edu
Tue Jul 7 12:44:24 CEST 2009
On Jul 4, 2009, at 12:32 PM, Dag Sverre Seljebotn wrote:
> Stefan Behnel wrote:
>> My opinion on this is: if you request true division semantics by
>> importing
>> __future__.division, you should get true division in all places
>> where you
>> use the "/" operator.
>>
>> Comments?
>
> Thanks for raising this issue. Without diving into the details myself,
> I'm +1 -- we've pretty much decided to have Python semantics on
> division.
Yep. As ugly as it seems (to me), when __future__.division is asked
for, the user should get it. This really shouldn't be too hard to
implement, now that the cdivision stuff is in place.
- Robert
More information about the Cython-dev
mailing list