warnings package might provide an Option or a pre-filled OptionParser
19 Feb
2010
19 Feb
'10
8:28 p.m.
Currently, `warnings` uses the `-W` interpreter-level option for non-programmatic configuration. While nice, this option isn't available out of the box to scripts where the interpreter is implicit (./script.py, or `script` where it's on $PATH). I believe it would be nice if `warnings` provided something one could simply drop into `optparse` to automagically get -W handling, without having to define custom option actions every time. What do you think?
5169
Age (days ago)
5172
Last active (days ago)
13 comments
6 participants
participants (6)
-
Antoine Pitrou
-
C. Titus Brown
-
Eric Smith
-
Greg Ewing
-
Masklinn
-
Nick Coghlan