Message107184
| Author |
belopolsky |
| Recipients |
belopolsky, brett.cannon, docs@python |
| Date |
2010年06月06日.05:56:09 |
| SpamBayes Score |
0.04471893 |
| Marked as misclassified |
No |
| Message-id |
<1275803772.87.0.206539659524.issue8913@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I wonder if this is subject to change. I find it odd that
>>> "{:g}".format(1e3)
'1000'
but one has to use % in
>>> "{:%Y}".format(datetime.now())
'2010'
It is also different from PEP 3101 recommendation:
"""
An example is the 'datetime' class,
whose format specifiers might look something like the
arguments to the strftime() function:
"Today is: {0:a b d H:M:S Y}".format(datetime.now())
"""
The above, however, should probably be
"Today is: {0:a} {0:b} {0:d} {0:H}:{0:M}:{0:S} {0:Y}".format(datetime.now()) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年06月06日 05:56:13 | belopolsky | set | recipients:
+ belopolsky, brett.cannon, docs@python |
| 2010年06月06日 05:56:12 | belopolsky | set | messageid: <1275803772.87.0.206539659524.issue8913@psf.upfronthosting.co.za> |
| 2010年06月06日 05:56:11 | belopolsky | link | issue8913 messages |
| 2010年06月06日 05:56:10 | belopolsky | create |
|