[docs] [issue10379] locale.format() input regression

Mark Lawrence report at bugs.python.org
Tue Apr 2 04:12:46 CEST 2013


Mark Lawrence added the comment:

msg120978 "The bug has been fixed upstream...".  Have I missed something as on Windows Vista...?

c:\Users\Mark\MyPython>python
Python 3.3.1rc1 (v3.3.1rc1:92c2cfb92405, Mar 25 2013, 22:39:19) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale; print(locale.format('%.0f KB', 100))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "c:\python33\lib\locale.py", line 193, in format
    "format specifier, %s not valid") % repr(percent))
ValueError: format() must be given exactly one %char format specifier, '%.0f KB' not valid

----------
nosy: +BreamoreBoy

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


More information about the docs mailing list