Éric Araujo mer...@netwok.org added the comment:
I just checked argparse and there are similar non-optimal calls. Not all
languages can use “string(s)” to express with 0, 1 or more, that’s why we have
ngettext.
Georg: This is a string change similar to #10528. Does it need a patch and
Éric Araujo mer...@netwok.org added the comment:
optparse is widely used, so the answer to my question is: yes, it is worth
fixing. Checking argparse for the same errors is also a good idea.
Dwayne: can you update your patch to address my remarks? If not, someone else
or I may do it.
Éric Araujo mer...@netwok.org added the comment:
Now that argparse has been included in the standard library to supersede
optparse, I’m not sure there is still value in fixing this bug.
--
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4391
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for your patch. I have some remarks:
1) please produce a patch from the top level of a Python checkout (cf.
http://www.python.org/dev/patches/);
2) wrap lines under 80 characters;
3) bug with %-formatting: the singular message takes one
Changes by Raymond Hettinger [EMAIL PROTECTED]:
--
priority: - low
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4391
___
___
Python-bugs-list mailing
New submission from Dwayne Bailey [EMAIL PROTECTED]:
The following code in optparse:
if len(rargs) nargs:
if nargs == 1:
self.error(_(%s option requires an argument) % opt)
else:
self.error(_(%s option requires
David W. Lambert [EMAIL PROTECTED] added the comment:
And while at it, replace usage with Use.
Usage isn't a word.
--
nosy: +LambertDW
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4391
___
Dwayne Bailey [EMAIL PROTECTED] added the comment:
Mmm some problems with my head late at night. This patch sorts things
out and makes sure strings can be extracted by xgettext
Added file:
http://bugs.python.org/file12108/optparse_proper_gettext_plurals.diff