homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:13belopolskysetrecipients: + belopolsky, brett.cannon, docs@python
2010年06月06日 05:56:12belopolskysetmessageid: <1275803772.87.0.206539659524.issue8913@psf.upfronthosting.co.za>
2010年06月06日 05:56:11belopolskylinkissue8913 messages
2010年06月06日 05:56:10belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /