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 py.user
Recipients py.user
Date 2012年01月18日.00:54:03
SpamBayes Score 2.135238e-05
Marked as misclassified No
Message-id <1326848044.1.0.328293668269.issue13811@psf.upfronthosting.co.za>
In-reply-to
Content
http://docs.python.org/py3k/library/string.html#format-specification-mini-language
"The fill character can be any character other than ‘{‘ or ‘}’. The presence of a fill character is signaled by the character following it, which must be one of the alignment options. If the second character of format_spec is not a valid alignment option, then it is assumed that both the fill character and the alignment option are absent."
>>> '{0:x>10d}'.format(1)
'xxxxxxxxx1'
>>> '{0:xx10d}'.format(1)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ValueError: Invalid conversion specification
>>>
History
Date User Action Args
2012年01月18日 00:54:04py.usersetrecipients: + py.user
2012年01月18日 00:54:04py.usersetmessageid: <1326848044.1.0.328293668269.issue13811@psf.upfronthosting.co.za>
2012年01月18日 00:54:03py.userlinkissue13811 messages
2012年01月18日 00:54:03py.usercreate

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