[Cython] a question about Shadow.py

Robert Bradshaw robertwb at math.washington.edu
Sat Apr 25 18:34:29 CEST 2009


On Apr 25, 2009, at 8:36 AM, Carl Witty wrote:

> On Sat, Apr 25, 2009 at 12:43 AM, Robert Bradshaw
> <robertwb at math.washington.edu> wrote:
>> C has undefined division semantics, so Python semantics are fine with
>> cython.cdivision(True) (though I have yet to run into that in
>> practice). However, almost every compiler directive can't be emulated
>> in pure Python mode (e.g. we don't truncate integers), so I am of the
>> opinion that they should just be vacuous and ignored rather than all
>> raise warnings.
>
> The current version of ANSI C has defined division semantics (the
> first version of ANSI C did not).

Yes, it does, but we don't rely on things being c99+ compliant.

- Robert



More information about the Cython-dev mailing list