Message107184
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()) |
|
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 | |
|