6 Nov
2012
6 Nov
'12
11:49 p.m.
On Nov 6, 2012 1:05 PM, "Ned Batchelder"
On 11/6/2012 11:26 AM, R. David Murray wrote:
On Tue, 06 Nov 2012 18:14:38 +0200, Serhiy Storchaka
wrote:
Another counterintuitive (and possible wrong) example:
>>> {print('foo'): print('bar')} bar foo {None: None}
This seems to me better left undefined, since there's hardly ever a need to know the precise evaluation sequence between keys and values, and retaining some amount of "unspecified" to allow for implementation flexibility is a good thing.
"Left undefined"? The behavior was defined, but CPython didn't follow the defined behaviour. --Devin (phone)