Re: [Cython] can we deprecate for-from loops?

2015-10-11 Thread Kevin Norris
Greg Ewing wrote: > Stefan Behnel wrote: > > Hi! > > > > The syntax construct "for i from 0 <= i < 10" has been silently outdated > > for years. Can we start issuing a warning that normal range() loops are > > preferred? > > I'd be in favour of replacing it with just 'for 0 <= i < 10', > but -1 on

Re: [Cython] can we deprecate for-from loops?

2015-10-11 Thread Greg Ewing
Stefan Behnel wrote: Hi! The syntax construct "for i from 0 <= i < 10" has been silently outdated for years. Can we start issuing a warning that normal range() loops are preferred? I'd be in favour of replacing it with just 'for 0 <= i < 10', but -1 on removing it altogether. I introduced it

Re: [Cython] can we deprecate for-from loops?

2015-10-11 Thread William Stein
On Sun, Oct 11, 2015 at 1:01 PM, Jeroen Demeyer wrote: > On 2015-10-11 16:30, Stefan Behnel wrote: >> >> Hi! >> >> The syntax construct "for i from 0 <= i < 10" has been silently outdated >> for years. Can we start issuing a warning that normal range() loops are >> preferred? > > > Is there anythi

Re: [Cython] can we deprecate for-from loops?

2015-10-11 Thread Jeroen Demeyer
On 2015-10-11 16:30, Stefan Behnel wrote: Hi! The syntax construct "for i from 0 <= i < 10" has been silently outdated for years. Can we start issuing a warning that normal range() loops are preferred? Is there anything wrong with the for ... from ... syntax? In more complicated situations I

Re: [Cython] git master fails to compile scipy

2015-10-11 Thread Stefan Behnel
Julian Taylor via cython-devel schrieb am 11.10.2015 um 12:38: > another file fails too: > https://github.com/scipy/scipy/blob/master/scipy/sparse/csgraph/_shortest_path.pyx > > Error compiling Cython file: > > ... > for

[Cython] can we deprecate for-from loops?

2015-10-11 Thread Stefan Behnel
Hi! The syntax construct "for i from 0 <= i < 10" has been silently outdated for years. Can we start issuing a warning that normal range() loops are preferred? While I don't see it going to go away any time soon, I'd like to make users aware that it's an unnecessary syntax wart that's best avoide

Re: [Cython] git master fails to compile scipy

2015-10-11 Thread Julian Taylor via cython-devel
thanks, another file fails too: https://github.com/scipy/scipy/blob/master/scipy/sparse/csgraph/_shortest_path.pyx Error compiling Cython file: ... for k from csr_indptr[j] <= k < csr_indptr[j + 1]: w1

Re: [Cython] [cython-users] Cython 0.23.4 released

2015-10-11 Thread Stefan Behnel
Lisandro Dalcin schrieb am 11.10.2015 um 10:30: > On 10 October 2015 at 15:46, Stefan Behnel wrote: >> here is a minor bug-fix release for the 0.23 release series that repairs >> some problems and regressions. >> >> https://pypi.python.org/pypi/Cython/0.23.4 > > Stefan, should we upload wheels to

Re: [Cython] [cython-users] Cython 0.23.4 released

2015-10-11 Thread Lisandro Dalcin
On 10 October 2015 at 15:46, Stefan Behnel wrote: > Hi everyone, > > here is a minor bug-fix release for the 0.23 release series that repairs > some problems and regressions. > > https://pypi.python.org/pypi/Cython/0.23.4 > > Complete changelog follows below. > > > You can get the signed release f