[issue8359] % formating - TypeError: not all arguments converted during string formatting
عبدالله شلي (Abdellah Chelli)
report at bugs.python.org
Sat Apr 10 13:55:58 CEST 2010
عبدالله شلي (Abdellah Chelli) <sneetsher at gmail.com> added the comment:
'One hour' % {'n': 3} / mapping will not work gettext replaces the string for each language.
str.format works well.
The problem we couldn't submit a bug to change the code for all packages using it.
I think it's better to be fixed here. At lease this problem must be mentioned within the "% formatting" on Documentation. So developers will avoid using it on internationalized tools.
I have already written this.
So is str.format the new way for formatting?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8359>
_______________________________________
More information about the Python-bugs-list
mailing list