non-deterministic

Why is dictionary ordering non-deterministic?

Why is dictionary ordering non-deterministic? Question: I recently switched from Python 2.7 to Python 3.3, and it seems that while in Python 2 the ordering of dictionary keys was arbitrary but consistent, in Python 3 the ordering of the keys of a dictionary obtained with e.g. vars() appears non-deterministic. If I run: class Test(object): pass …

Total answers: 2