Error in optparse documentation

Steven Bethard steven.bethard at gmail.com
Sun May 27 18:58:59 EDT 2007


Shatadal wrote:
> In the python documentation section 14.3.2.6 (http://docs.python.org/
> lib/optparse-generating-help.html) in the last line it is written
> 
> "options that have a default value can include %default in the help
> string--optparse will replace it with str() of the option's default
> value. If an option has no default value (or the default value is
> None), %default expands to none."
> 
> However this is true only for python 2.4 and newer and not for older
> versions.

The optparse module is externally maintained. You should file a 
documentation bug at http://optik.sourceforge.net/

STeVe



More information about the Python-list mailing list