[New-bugs-announce] [issue4568] Improved optparse "varargs" callback example
Gregg Lind
report at bugs.python.org
Sun Dec 7 00:09:38 CET 2008
New submission from Gregg Lind <gregg.lind at gmail.com>:
In the trunk (r67617) documentation for *optparse* callback example 6
doesn't handle negative number arguments, and fixing it is "left as an
exercise for the reader." Well, I'm a reader, and I've attached my stab
at it. Caveat: It relies in trying to coerce the argument into a
float... maybe there's a cleaner way to do it?
(This is my first patch, so I apologize if I've fouled it up in some
way, particularly in the headers of the patch format.)
----------
assignee: georg.brandl
components: Documentation
files: better_optparse_varargs_example.diff
keywords: patch
messages: 77185
nosy: georg.brandl, gregg.lind
severity: normal
status: open
title: Improved optparse "varargs" callback example
Added file: http://bugs.python.org/file12258/better_optparse_varargs_example.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4568>
_______________________________________
More information about the New-bugs-announce
mailing list