Message121219
| Author |
bethard |
| Recipients |
bethard, docs@python |
| Date |
2010年11月15日.10:30:33 |
| SpamBayes Score |
1.0441817e-06 |
| Marked as misclassified |
No |
| Message-id |
<1289817035.63.0.362408496183.issue10423@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
From a personal email:
----------------------------------------------------------------------
I'm not signed up for all the Python issue tracking stuff, but thought I'd let you know about a problem with the argparse doc page:
http://docs.python.org/library/argparse.html
It says at the end:
Replace options, args = parser.parse_args() with args = parser.parse_args() and add additional ArgumentParser.add_argument() calls for the positional arguments.
But I think it should be options = parser.parse_args(), not args.
----------------------------------------------------------------------
They're not options, so I don't like encouraging people to continue to call them options, but the docs should at least make clear that the namespace object that used to be called "options" is now called "args". |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年11月15日 10:30:35 | bethard | set | recipients:
+ bethard, docs@python |
| 2010年11月15日 10:30:35 | bethard | set | messageid: <1289817035.63.0.362408496183.issue10423@psf.upfronthosting.co.za> |
| 2010年11月15日 10:30:33 | bethard | link | issue10423 messages |
| 2010年11月15日 10:30:33 | bethard | create |
|