Message99670
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) |
|
Date |
User |
Action |
Args |
2010-02-21 16:55:34 | xmorel | set | recipients:
+ xmorel |
2010-02-21 16:55:33 | xmorel | set | messageid: <1266771333.82.0.427614024661.issue7976@psf.upfronthosting.co.za> |
2010-02-21 16:55:32 | xmorel | link | issue7976 messages |
2010-02-21 16:55:32 | xmorel | create | |
|