Author christoph
Recipients christoph
Date 2009-08-06.11:09:35
SpamBayes Score 8.40536e-10
Marked as misclassified No
Message-id <1249556978.14.0.317265689402.issue6656@psf.upfronthosting.co.za>
In-reply-to
Content
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%'
History
Date User Action Args
2009-08-06 11:09:38christophsetrecipients: + christoph
2009-08-06 11:09:38christophsetmessageid: <1249556978.14.0.317265689402.issue6656@psf.upfronthosting.co.za>
2009-08-06 11:09:36christophlinkissue6656 messages
2009-08-06 11:09:36christophcreate