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 Thomas.Robitaille
Recipients Thomas.Robitaille
Date 2014年01月06日.18:16:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389032161.42.0.577933973443.issue20150@psf.upfronthosting.co.za>
In-reply-to
Content
The following code:
>>> "{0:s}".format([1,2,3])
no longer works in Python 3.4b1, and gives the following exception:
>>> "{0:s}".format([1,2,3])
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
TypeError: non-empty format string passed to object.__format__
This worked previously in Python 2.6-3.3:
>>> "{0:s}".format([1,2,3])
'[1, 2, 3]'
If this is a deliberate change, it should be included in the 'What's new in Python 3.4'
History
Date User Action Args
2014年01月06日 18:16:01Thomas.Robitaillesetrecipients: + Thomas.Robitaille
2014年01月06日 18:16:01Thomas.Robitaillesetmessageid: <1389032161.42.0.577933973443.issue20150@psf.upfronthosting.co.za>
2014年01月06日 18:16:01Thomas.Robitaillelinkissue20150 messages
2014年01月06日 18:16:01Thomas.Robitaillecreate

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