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