Richard Lowe <richl...@richlowe.net> added the comment:

I don't find anything lacking about the error messages, I meant that there were 
no more specific exceptions, or fields in GetoptError to allow the caller to 
tell what was specifically wrong and provide its own localized messages.  So 
while the defaults are unlocalized, all an application can do is interpret the 
error string to provide a localized message.

The solution I was thinking of is getopt raising sub-types of GetoptError for 
each specific error case (unknown option, option requires argument, etc), and 
the message text of each of those being localized through gettext().  I'm not 
sure what problems that could cause with compatibility however, beyond 
obviously anyone who's already resorted to interpreting the string would have 
problems.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8841>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to