[Python-Dev] -Dwarn, long->double overflow (was RE: [Python-checkins] CVS: python/dist/src/Misc NEWS,1.219,1.220)

Fredrik Lundh fredrik@pythonware.com
Mon, 3 Sep 2001 08:47:19 +0200


guido wrote:
> Yes, for efficiency reasons.  A call to PyErr_Warn(), even if it
> doesn't print anything, is very expensive (compared to a division): it
> calls out to the warnings.py module which goes through a list of
> filters etc., etc.

you could always special-case "-Wdefault:classic float division"
(it's not exactly an option everyone will use all the time, is it?)

</F>