New submission from John O'Hagan <resea...@johnohagan.com>: Argparse in python3.2 includes two calls to ngettext to handle error messages, but ngettext is not imported. This causes NameError to be raised instead of ArgumentError.
Changing line 93 from: from gettext import gettext to: from gettext import gettext, ngettext seems to fix the problem. ---------- components: Library (Lib) messages: 134126 nosy: johnohagan priority: normal severity: normal status: open title: Argparse calls ngettext but doesn't import it type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11884> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com