Message170555
Here are some related failing cases that I found:
>>> f = string.Formatter()
>>> f.format(u"{0}", "")
''
>>> f.format(u"{0}", 1)
'1'
>>> f.format(u"{0}", "a")
'a'
>>> f.format(u"{0}{1}", "a", "b")
'ab'
>>> f.format("{0}", u"a")
u'a'
Note that PEP 3101 says the following:
"In all cases, the type of the format string dominates - that
is, the result of the conversion will always result in an object
that contains the same representation of characters as the
input format string." |
|
Date |
User |
Action |
Args |
2012-09-16 13:55:30 | chris.jerdonek | set | recipients:
+ chris.jerdonek, Aleksey.Sivokon |
2012-09-16 13:55:30 | chris.jerdonek | set | messageid: <1347803730.9.0.312218895827.issue15951@psf.upfronthosting.co.za> |
2012-09-16 13:55:30 | chris.jerdonek | link | issue15951 messages |
2012-09-16 13:55:30 | chris.jerdonek | create | |
|