A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-May/134443.html below:

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

[Python-Dev] Behaviour change of object().format() in 3.4James Swift james at 3dengineer.com
Tue May 6 16:45:52 CEST 2014
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 "<stdin>", line 1, in <module>
TypeError: non-empty format string passed to object.__format__


Is this intentional?

regards,
James Swift
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20140506/c152883a/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4