Fixing tests
Fixing tests
Posted Apr 13, 2012 13:10 UTC (Fri) by dskoll (subscriber, #1630)In reply to: Fixing tests by man_ls
Parent article: Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 security release
By the way, PHP also returns keys in insertion order, this time with real associative arrays. It is a nice feature IMHO
I don't like the fact that PHP treats arrays and hashes as the same thing. I would prefer a different syntax for a numerically-indexed array than for an associative array. I would also rather that hashes don't return keys in insertion order by default. PHP should provide a separate data type similar to Python's OrderedDict for those times you want insertion order respected and are willing to pay the overhead.
