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 | hoffman |
|---|---|
| Recipients | hoffman |
| Date | 2008年02月21日.15:47:58 |
| SpamBayes Score | 0.2969221 |
| Marked as misclassified | No |
| Message-id | <1203608881.22.0.564217354476.issue2155@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Adding these four lines to optparse.OptionGroup makes using option groups vastly easier: def __enter__(self): return self def __exit__(self, *exc_info): self.parser.add_option_group(self) You can then do things like: with OptionGroup(parser, "Group name") as group: group.add_option(...) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年02月21日 15:48:01 | hoffman | set | spambayes_score: 0.296922 -> 0.2969221 recipients: + hoffman |
| 2008年02月21日 15:48:01 | hoffman | set | spambayes_score: 0.296922 -> 0.296922 messageid: <1203608881.22.0.564217354476.issue2155@psf.upfronthosting.co.za> |
| 2008年02月21日 15:47:59 | hoffman | link | issue2155 messages |
| 2008年02月21日 15:47:59 | hoffman | create | |