6 Nov
2012
6 Nov
'12
4:14 p.m.
On 06.11.12 14:01, Nick Coghlan wrote:
Python, on the other hand, is able to preserve primarily left to right evaluation in this case with only the far right hand expression needing to be evaluated out of order.
I'm surprised, but it is really so.
{}[print('foo')] = print('bar') bar foo
I was expecting "foo" before "bar". Another counterintuitive (and possible wrong) example:
{print('foo'): print('bar')} bar foo {None: None}