Ezio Melotti added the comment:
This has already been reported in #11205.
--
resolution: -> duplicate
stage: needs patch -> committed/rejected
status: open -> closed
superseder: -> Evaluation order of dictionary display is different from
reference manual.
New submission from Ezio Melotti:
http://docs.python.org/2/reference/expressions.html#evaluation-order
says that the dicts are evaluated in this order:
{expr1: expr2, expr3: expr4}
however each value is evaluated before the respective key:
def f(x):
print(x)
return x
{f('k1'): f('v1'), f(