New submission from Marcel Tschopp <m...@polynorm.ch>: locale.format_string doesn't return same result as a normal "string" % format directive, but raises a TypeError.
>>> locale.format_string('%(key)s', {'key': 'Test'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/locale.py", line 225, in format_string val[key] = format(perc.group(), val[key], grouping) File "/usr/local/lib/python2.6/locale.py", line 182, in format formatted = percent % value TypeError: format requires a mapping ---------- components: Library (Lib) messages: 100709 nosy: mtschopp severity: normal status: open title: locale.format_string fails on mapping keys type: behavior versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8096> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com