On Apr 24, 2009, at 1:48 PM, Lisandro Dalcin wrote: > On Fri, Apr 24, 2009 at 4:27 PM, Robert Bradshaw > <[email protected]> wrote: >> On Apr 24, 2009, at 8:17 AM, Lisandro Dalcin wrote: >> >>> I'm working on #295, but there is something I do not >>> understand... We >>> can use directives as decorators like this: >>> >>> @cython.cdivision(True) >>> def foo(): pass >>> >>> But then... Why Shadow.py does not expose a "cdivision" for using it >>> as a decorator?? >> >> Because I forgot to add it when I added cdiv/cmod. Note that >> cdivision does not guarantee certain semantics for division, just >> says that Python semantics are not enforced. >> > > Of course, then if @cython.cdivision(True) is used, the code in > Shadow should emit a warning, right?
No idea how one would do this... > >> >> The other compiler directives should be added as well. >> > > OK, though I likely will not take 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 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
