Message91352
locale.format_string doesn't return same result as a normal
"string" % format
directive, but raises a TypeError. See attached test case for Python
2.6.
>>> locale.format_string('%f%%', 1.0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/locale.py", line 195, in format_string
return new_f % val
TypeError: not enough arguments for format string
>>> '%f%%' % 1.0
'1.000000%' |
|
Date |
User |
Action |
Args |
2009-08-06 11:09:38 | christoph | set | recipients:
+ christoph |
2009-08-06 11:09:38 | christoph | set | messageid: <1249556978.14.0.317265689402.issue6656@psf.upfronthosting.co.za> |
2009-08-06 11:09:36 | christoph | link | issue6656 messages |
2009-08-06 11:09:36 | christoph | create | |
|