Author bethard
Recipients bethard, docs@python
Date 2011-02-10.15:48:55
SpamBayes Score 4.8148e-09
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2011-02-10 15:48:57bethardsetrecipients: + bethard, docs@python
2011-02-10 15:48:57bethardsetmessageid: <>
2011-02-10 15:48:55bethardlinkissue11176 messages
2011-02-10 15:48:55bethardcreate