[Python-ideas] warnings package might provide an Option or a pre-filled OptionParser

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 20 23:19:26 CET 2010


Masklinn wrote:
> I believe it would be nice if `warnings` provided something
> one could simply drop into `optparse` to automagically get 
> -W handling

Wouldn't this be better provided as a feature of the
optparse module? Otherwise you'd be making warnings
dependent on optparse, or at least having to know
about it, which seems like the wrong direction for
the dependency to go in.

-- 
Greg



More information about the Python-ideas mailing list