Message207459
| 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:01 | Thomas.Robitaille | set | recipients:
+ Thomas.Robitaille |
| 2014年01月06日 18:16:01 | Thomas.Robitaille | set | messageid: <1389032161.42.0.577933973443.issue20150@psf.upfronthosting.co.za> |
| 2014年01月06日 18:16:01 | Thomas.Robitaille | link | issue20150 messages |
| 2014年01月06日 18:16:01 | Thomas.Robitaille | create |
|