Re: [Python-Dev] dictionary order

2006-05-28 Thread John J Lee
On Sun, 28 May 2006, Armin Rigo wrote: [...] > Now I'm stumbling upon this test for urllib2: > >>>> mgr = urllib2.HTTPPasswordMgr() >>>> add = mgr.add_password >>>> add("Some Realm", "http://example.com/";, "joe", "password") >>>> add("Some Realm", "http://example.com/ni";, "ni", "n

[Python-Dev] dictionary order

2006-05-28 Thread Armin Rigo
Hi all, I'm playing with dicts that mangle the hash they receive before using it for hashing. The goal was to detect obscure dict order dependencies in my own programs, but I couldn't resist and ran the Python test suite with various mangling schemes. As expected -- what is not tested is broken