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 bethard
Recipients bethard, docs@python
Date 2011-02-10.15:48:55
SpamBayes Score 4.8148046e-09
Marked as misclassified No
Message-id <1297352937.46.0.470038569364.issue11176@psf.upfronthosting.co.za>
In-reply-to
Content
Suggestion from a personal email:

I personally am not keen on the foo/bar/baz examples. I
know that you're trying to be generic but IMO it would be much easier to
understand if you used meaningful names. Also, I think that the very
first example you give (which does use meaningful names:-) is too
clever. I'd suggest using something simpler: in fact I'd use exactly the
same example that optparse uses (--file && --quiet) since that is easy
to understand and relate to straight away, and maybe add a --line option
that takes a list of ints (ostensibly line numbers of lines to extract
from the file) if you want to show that argparse leaves optparse in the
dust. And you can always show how to get actual file objects later on.
History
Date User Action Args
2011-02-10 15:48:57bethardsetrecipients: + bethard, docs@python
2011-02-10 15:48:57bethardsetmessageid: <1297352937.46.0.470038569364.issue11176@psf.upfronthosting.co.za>
2011-02-10 15:48:55bethardlinkissue11176 messages
2011-02-10 15:48:55bethardcreate