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 | draghuram |
|---|---|
| Recipients | cjw296, draghuram, gvanrossum |
| Date | 2007年10月08日.14:30:42 |
| SpamBayes Score | 0.05827013 |
| Marked as misclassified | No |
| Message-id | <1191853843.43.0.0629450455073.issue1243@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I have never used callbacks but went through the docs/code and I am not sure if there is a bug here. _check_dest() creates 'dest' only if 'type' is specified for the 'callback' option. With callbacks, it can not guess the type as there is no 'store' action. The document does say that without 'type', optparse does not know how many arguments to consume. I added 'type' to your example add_option() and all is well. Please correct me if I am missing some thing here. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年10月08日 14:30:43 | draghuram | set | spambayes_score: 0.0582701 -> 0.05827013 recipients: + draghuram, gvanrossum, cjw296 |
| 2007年10月08日 14:30:43 | draghuram | set | spambayes_score: 0.0582701 -> 0.0582701 messageid: <1191853843.43.0.0629450455073.issue1243@psf.upfronthosting.co.za> |
| 2007年10月08日 14:30:43 | draghuram | link | issue1243 messages |
| 2007年10月08日 14:30:42 | draghuram | create | |