Message 178127 - Python tracker
Message178127
| 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:48 | ezio.melotti | set | recipients: + ezio.melotti, chris.jerdonek |
| 2012-12-25 13:54:47 | ezio.melotti | set | messageid: <1356443687.99.0.545943442406.issue16777@psf.upfronthosting.co.za> |
| 2012-12-25 13:54:47 | ezio.melotti | link | issue16777 messages |
| 2012-12-25 13:54:47 | ezio.melotti | create | |