New submission from Vaibhav Mallya <mally...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6009>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to