> > I think I'll go for something stupid and simple now, like just using > > -q to turn on division warnings, and nothing else (the -Dnew option is > > not very useful I think). > > 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. > And -q, to me, *screams* 'quiet', exactly the wrong thing... How > about -Q instead, if we really need a separate option for it ? OK. --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4