On Fri, Jul 24, 2009 at 11:40 PM, Jason Grout<[email protected]> wrote: > > Not if you use comprehension-like syntax. Can Cython support that in > the same way it supports list/set/dict comprehensions? > > Note that in lots of cases, having any/all only support lists kind of > defeats the purpose of the short-cutting. > > {{{id=0| > %cython > print all(i>=0 for i in range(10)) > print any(i<0 for i in range(10)) > /// >
Wait a minute... this does not have nothing to do with any/all. For this to work, Cython have to support GENERATORS... Robert, Is your work on closures related to this? -- 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 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
