Re: [Python-Dev] Behaviour change of object().format()

2014-05-06 Thread Eric V. Smith
On 05/06/2014 10:33 AM, James Swift wrote: > Hi, > > In 3.3 I could do the following > "{x:s}".format(**{'x': [1, 2, 3]}) > '[1, 2, 3]' > > But in 3.4 > "{x:s}".format(**{'x': [1, 2, 3]}) > Traceback (most recent call last): > File "", line 1, in > TypeError: non-empty format strin

Re: [Python-Dev] Behaviour change of object().format() in 3.4

2014-05-06 Thread R. David Murray
On Tue, 06 May 2014 16:45:52 +0200, James Swift wrote: > Hi, > > In 3.3 I could do the following > > >>> "{x:s}".format(**{'x': [1, 2, 3]}) > '[1, 2, 3]' > > But in 3.4 > > >>> "{x:s}".format(**{'x': [1, 2, 3]}) > Traceback (most recent call last): > File "", line 1, in > TypeError: non-emp

[Python-Dev] Behaviour change of object().format() in 3.4

2014-05-06 Thread James Swift
Hi, In 3.3 I could do the following >>> "{x:s}".format(**{'x': [1, 2, 3]}) '[1, 2, 3]' But in 3.4 >>> "{x:s}".format(**{'x': [1, 2, 3]}) Traceback (most recent call last): File "", line 1, in TypeError: non-empty format string passed to object.__format__ Is this intentional? regards, Jame

[Python-Dev] Behaviour change of object().format()

2014-05-06 Thread James Swift
Hi, In 3.3 I could do the following >>> "{x:s}".format(**{'x': [1, 2, 3]}) '[1, 2, 3]' But in 3.4 >>> "{x:s}".format(**{'x': [1, 2, 3]}) Traceback (most recent call last): File "", line 1, in TypeError: non-empty format string passed to object.__format__ Is this intentional? regards, Jame