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}


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to