[issue4297] Add error_log attribute to optparse.OptionParser

R. David Murray report at bugs.python.org
Fri Jul 9 23:33:10 CEST 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

Having an easy way to control where output goes makes sense.  This is a new feature, however, and thus only a candidate for 3.2, and in 3.2 it would be better to target it at argparse.  I think argarse makes this easier to do via subclassing, but doing so the easy way seems to require overriding a 'private' method (_print_message).  I've added Steven to the nosy list to see what he thinks.

----------
nosy: +bethard, r.david.murray
versions:  -Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4297>
_______________________________________


More information about the Python-bugs-list mailing list