New submission from Charlie Dimino:
http://docs.python.org/2/howto/argparse.html
Error message in the first example is outdated, may indicate further out of
date information on page.
Example:
The tutorial says:
prog.py: error: the following arguments are required: echo
When the actual error
R. David Murray added the comment:
Ah, the whole tutorial is newish. So this is a bug just in the 2.7 version of
the tutorial (it doesn't match the 2.7 code), and yes, there may be other
issues as well.
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
Actually it looks like it is future-dated. The documented error message is the
one you get from 3.3. I guess someone backported a doc change for a feature
change.
--
nosy: +r.david.murray
___
Python tracker
R. David Murray added the comment:
See issue 14034. Ezio apparently left the error messages unchanged on
purpose...I'm not sure why.
--
assignee: docs@python -
nosy: +ezio.melotti, tshepang
___
Python tracker rep...@bugs.python.org
Ezio Melotti added the comment:
When I backported the patch I probably didn't want to try all the examples to
see what the py2 error was. In addition the py3 error is more clear even if it
doesn't match what you actually get.
I think this can be closed as won't fix, unless someone wants to
Charlie Dimino added the comment:
If it's okay, don't close this just yet. I'm new to this system but I'll submit
a patch with any fixes to the tutorial I find.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16863