Message170555
| Author |
chris.jerdonek |
| Recipients |
Aleksey.Sivokon, chris.jerdonek |
| Date |
2012年09月16日.13:55:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1347803730.9.0.312218895827.issue15951@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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." |
|
History
|
|---|
| 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 |
|