Message207459
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' |
|
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 | |
|