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/2012-November/122569.html below:

[Python-Dev] chained assignment weirdity

[Python-Dev] chained assignment weirdity [Python-Dev] chained assignment weirditySerhiy Storchaka storchaka at gmail.com
Wed Nov 7 08:49:43 CET 2012
On 06.11.12 21:00, Ned Batchelder wrote:
> If someone really needs to control whether the keys or values
> are evaluated first, they shouldn't use a dict literal.

Not only a dict literal.

 >>> {print('foo'): print('bar') for x in [1]}
bar
foo
{None: None}


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