This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xmorel
Recipients xmorel
Date 2010-02-21.16:55:31
SpamBayes Score 1.1348666e-07
Marked as misclassified No
Message-id <1266771333.82.0.427614024661.issue7976@psf.upfronthosting.co.za>
In-reply-to
Content
The interpreter has a -W option to manage warnings display, but when calling a development-related script (e.g. a framework's web development server) there is no way to manage these warnings without going back to calling the interpreter explicitly (``tool`` -> ``python path/to/tool``).

``warnings`` could provide an optparse.Option instance the tool maker could just drop into his OptionParser to provide a ``-W`` doing the same thing as the interpreter's.

Provided is a patch for python-trunk, if it's deemed interesting and good enough I'll check if it applies on python3-trunk (and create another patch which does if not)
History
Date User Action Args
2010-02-21 16:55:34xmorelsetrecipients: + xmorel
2010-02-21 16:55:33xmorelsetmessageid: <1266771333.82.0.427614024661.issue7976@psf.upfronthosting.co.za>
2010-02-21 16:55:32xmorellinkissue7976 messages
2010-02-21 16:55:32xmorelcreate