[New-bugs-announce] [issue6009] optparse docs say 'default' keyword is deprecated but uses it in most examples

Vaibhav Mallya report at bugs.python.org
Wed May 13 07:02:07 CEST 2009


New submission from Vaibhav Mallya <mallyvai at umich.edu>:

The first example, and several subsequent examples later on in the
optparse docs, use 'default' as an argument, even though it's apparently
deprecated in favor of set_defaults. At the risk of overstating the
obvious, this seems to be inconsistent. Even the section on defaults
http://docs.python.org/library/optparse.html#default-values uses the
'default' keyword without stressing its deprecation. It might make more
sense to leave it out of all of the examples altogether, replacing it
with the appropriate set_defaults invocations.

----------
assignee: georg.brandl
components: Documentation, Library (Lib)
messages: 87668
nosy: georg.brandl, mallyvai
severity: normal
status: open
title: optparse docs say 'default' keyword is deprecated but uses it in most examples
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list