This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregg.lind
Recipients georg.brandl, gregg.lind
Date 2008-12-06.23:09:35
SpamBayes Score 0.0003503693
Marked as misclassified No
Message-id <1228604978.13.0.373937765276.issue4568@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2008-12-06 23:09:38gregg.lindsetrecipients: + gregg.lind, georg.brandl
2008-12-06 23:09:38gregg.lindsetmessageid: <1228604978.13.0.373937765276.issue4568@psf.upfronthosting.co.za>
2008-12-06 23:09:36gregg.lindlinkissue4568 messages
2008-12-06 23:09:36gregg.lindcreate