[issue16777] "Evaluation order" doc section is wrong about dicts

2012-12-25 Thread Ezio Melotti
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.

[issue16777] "Evaluation order" doc section is wrong about dicts

2012-12-25 Thread Ezio Melotti
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(