On Thu, Mar 12, 2009 at 12:12 AM, Robert Bradshaw <[email protected]> wrote: > On Mar 11, 2009, at 11:20 PM, Stefan Behnel wrote: >> Wouldn't it be better to have such a flag emit warnings (preferably >> with a >> hint how to write better code) instead of changing the semantics of >> operators? > > It won't be very useful to emit a warning on, for example, every % > operator. Also, I really want to be able to write code values speed > over perfect Python semantics, and at the same time take a .py file > and not have to worry about subtle corner-case changes. The problem > is that both modes are very defendable as the default.
How about a flag that generates runtime warnings on a%b and a//b whenever a and b have different sign? Carl _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
