[Python-Dev] -Dwarn, long->double overflow (was RE: [Python-checkins] CVS: python/dist/src/Misc NEWS,1.219,1.220)
Thomas Wouters
thomas@xs4all.net
Mon, 3 Sep 2001 11:52:39 +0200
On Sun, Sep 02, 2001 at 09:52:42PM -0400, Guido van Rossum wrote:
> > I'm fine with a single option, but I'd like to note two things: we already
> > have a command line option to turn on specific warnings, do we really need
> > another ?
> 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.
Well, sure, but that says naught about not using the same *option*, just
about not using the same framework :) It shouldn't be too hard to
specialcase, say, -Wdiv. (or '-Wodiv' or '-Wtdiv', or whichever.)
--
Thomas Wouters <thomas@xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!