Posted Apr 12, 2012 12:45 UTC (Thu) by dskoll
In reply to: Semi-closing a hole
Parent article: Python 2.6.8, 2.7.3, 3.1.5, and 3.2.3 security release
However, making the hashing order random would make it nearly impossible to keep static test files and my whole scheme would not so much fly but plummet.
Surely your test code should not depend on the order of elements? The
Perl module Test::Deep has routines for comparing hashes (equivalent of Python's dicts) that don't depend on the order of elements.
to post comments)