[Cython] a question about Shadow.py
Robert Bradshaw
robertwb at math.washington.edu
Fri Apr 24 21:27:11 CEST 2009
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.
The other compiler directives should be added as well.
- Robert
More information about the Cython-dev
mailing list