Carl Witty wrote: > On Tue, Mar 24, 2009 at 1:17 PM, Robert Bradshaw > <[email protected]> wrote: >> On Mar 24, 2009, at 8:46 AM, Carl Witty wrote: >>> It would be nice if the "kill performance entirely and check the >>> value at >>> runtime to emit a warning only when it's necessary" option were also >>> available (under the control of a compiler flag, probably, and >>> definitely not by default). Then somebody could compile Sage with >>> that flag and see if doctesting reveals any problems. >> Sure. We have cython.cdivision(True), cython.cdivision(False), and ??? > > Well, it should be orthogonal to these (you may want the warning flag > regardless of whether the current code defaults to C or Python > division mode). > > Maybe cdivision(c_mode, warn_if_mode_matters=False), so you can use > cython.cdivision(True, True) or cython.cdivision(False, True).
A seperate cython.warning_if_division_mode_matters will save us 20 minutes of developer time, as keywords are currently not supported for directives :-) -- Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
