[Cython] Fix for #196 (for loop bug)
Lisandro Dalcin
dalcinl at gmail.com
Fri Jan 30 20:31:07 CET 2009
On Fri, Jan 30, 2009 at 10:30 AM, Dag Sverre Seljebotn
<dagss at student.matnat.uio.no> wrote:
> I think so -- the for-from loop is a C idiom from which one can expect C
> behaviour from my perspective, and if this has been the behaviour so far
> then backward compatability alone speaks against altering it. The range
> optimization has been around for much shorter and clearly should behave
> as Python range, so that story is different.
>
Indeed. I've wrote code where the C semantics is assumed.
> (Well, my real perspective is that for-from should be deprecated and
> removed prior to a 1.0 release, but let's not have that war now :-) )
>
No please! Again, the C semantics is useful in some cases, and
removing it will make a lot of code out there stop compiling.
> Dag Sverre
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
More information about the Cython-dev
mailing list