[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-23 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I believe the OP’s request is partly motivated by the fact that there is a need to access a private function in warnings. See http://mail.python.org/pipermail/python-ideas/2010-February/006870.html where Nick Coghlan proposes that “the idea of

[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-22 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Here’s another idea. I seem to remember Python warnings can be turned into logging events. If these big apps and frameworks (that already use logging) turned warnings into logging calls, standard logging configuration mecanisms could be

[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I believe the ability to log warning messages was added recently, but that it does not give you an control over what warnings are *generated*, just what happens to them (that is, allowing you to log them). On the other hand, what is the