This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients chris.jerdonek, ezio.melotti
Date 2012-12-25.13:54:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356443687.99.0.545943442406.issue16777@psf.upfronthosting.co.za>
In-reply-to
Content
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('k2'): f('v2')}

v1
k1
v2
k2
{'k1': 'v1', 'k2': 'v2'}
History
Date User Action Args
2012-12-25 13:54:48ezio.melottisetrecipients: + ezio.melotti, chris.jerdonek
2012-12-25 13:54:47ezio.melottisetmessageid: <1356443687.99.0.545943442406.issue16777@psf.upfronthosting.co.za>
2012-12-25 13:54:47ezio.melottilinkissue16777 messages
2012-12-25 13:54:47ezio.melotticreate