[RELEASED] Python 3.3.0

Chris Angelico rosuav at gmail.com
Sat Sep 29 10:25:02 EDT 2012


On Sun, Sep 30, 2012 at 12:17 AM, Stefan Behnel <stefan_ml at behnel.de> wrote:
> Christian Heimes, 29.09.2012 16:06:
>> From now on you can't rely
>> on the order of an unordered type like dict or set.
>
> Tautologies tend to be true even without a temporal qualification.

Technically people shouldn't ever have relied on the order, but until
hash randomization came in, the order in CPython was actually
predictable - for a given set of dictionary operations, the internal
structure was determinate, and the consequent iteration order would be
consistent. Now that that's no longer the case, "unordered" really
means "unordered", and the order can change from one run of a program
to another.

So it may be a tautology in theory, but not in practice..... until
now. Truth has become true.

ChrisA



More information about the Python-list mailing list