Fixing tests
Fixing tests
Posted Apr 12, 2012 20:22 UTC (Thu) by man_ls (guest, #15091)In reply to: Fixing tests by dskoll
Parent article: Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 security release
My mistake, Gecko and WebKit return keys in insertion order, not alphabetical. And it is not javascript arrays but objects; as you probably know, Javascript Does Not Support Associative Arrays
By the way, PHP also returns keys in insertion order, this time with real associative arrays. It is a nice feature IMHO; it may have some overhead but the results are much more intuitive than with Python's dicts. In a certain sense these other languages are hiding the details of the implementation, so that e.g. primitive testing schemes do not rely on the particular hashing function used.
