Re: [Cython] [cython-users] Integer division

2015-09-07 Thread Ian Henriksen
Since Cython already tries to make division of C integers behave like Python division, I'd expect python-like behavior (mimicking python 2 or 3 as needed) by default and unchanged C integer division when the cdivision directive is set. Best, -Ian Henriksen On Mon, Sep 7, 2015 at 9:55 PM Robert Bra

Re: [Cython] [cython-users] Integer division

2015-09-07 Thread Robert Bradshaw
On Mon, Sep 7, 2015 at 5:42 PM, Antony Lee wrote: > My 2c (not cc'ed to cython-devel, as I am not registered): > > - language_level=3 implies __future__ division. > - if __future__ division is set: int / int => float (whether variables are > untyped (= typed at runtime by python) or typed (includi

Re: [Cython] [cython-users] Integer division

2015-09-07 Thread Robert Bradshaw
Or perhaps we should respect float division even with cdivision... Thoughts? On Mon, Sep 7, 2015 at 5:13 PM, Robert Bradshaw wrote: > Oh, that's another issue. I'll clarify this in the documentation. > > On Mon, Sep 7, 2015 at 3:59 PM, Antony Lee wrote: >> Actually I realized that it's another p