[issue6656] locale.format_string fails on escaped percentage

R. David Murray report at bugs.python.org
Tue Aug 11 10:05:42 CEST 2009


R. David Murray <rdmurray at bitdance.com> added the comment:

Here is a patch against trunk that fixes both the mapping handling and
the % escape handling.

The thing that worries me about this patch is that there are (obviously)
not a comprehensive set of tests proving that format_string actually
behaves like % formatting does.  So my refactoring could have broken
other behavior and I wouldn't know it.  However, since % formatting is
effectively depricated, I'm not sure how much effort it is worth putting
in to this....

----------
keywords: +needs review
stage:  -> patch review
Added file: http://bugs.python.org/file14691/locale-fix.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6656>
_______________________________________


More information about the Python-bugs-list mailing list