Re: [Cython] call for contribution: PEP 498 - Literal String Interpolation

2015-09-07 Thread Stefan Behnel
Fabrizio Messina schrieb am 07.09.2015 um 12:23: > On 5 Sep 2015 20:32, "Stefan Behnel" wrote: >> It looks like PEP 498 (f-strings) is going to be accepted soon. Anyone >> interested in implementing it for Cython? >> >> https://www.python.org/dev/peps/pep-0498/ >> >> It's certainly a bit of work,

Re: [Cython] call for contribution: PEP 498 - Literal String Interpolation

2015-09-07 Thread Fabrizio Messina
Hello, I would like to give a look on that on my spare time. On 5 Sep 2015 20:32, "Stefan Behnel" wrote: Hi! It looks like PEP 498 (f-strings) is going to be accepted soon. Anyone interested in implementing it for Cython? https://www.python.org/dev/peps/pep-0498/ It's certainly a bit of work,

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

Re: [Cython] All DEF constants are now unsigned?

2015-09-07 Thread Robert Bradshaw
On Sun, Sep 6, 2015 at 5:30 AM, Stefan Behnel wrote: > Jeroen Demeyer schrieb am 06.09.2015 um 10:54: >> On 2015-09-05 17:09, Stefan Behnel wrote: >>> It now appends the 'U' suffix only to literals that are used in an unsigned >>> context (e.g. assignment to unsigned variable), and additionally ap