New submission from Gregg Lind <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4568>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to