[python-uk] memoize & ordering of kwargs.items()

Jonathan tartley at tartley.com
Fri Nov 11 10:35:00 CET 2011

On 11/11/2011 09:24, Duncan Booth wrote:
> pick keys that that hash to the same value modulo the size of the 
> dictionary. Since the dictionary copy copies the keys in the order 
> they are stored you will get the same hash conflict in the copy as the 
> original.

Brilliant, thank-you. So I was just being 'lucky' in my choices of dict 
keys. I believe this is the answer I am looking for. René & Ross's point 
about being mindful of different implementations is still very pertinent 
in my mind, but I'm happy for now.

Thanks everyone!


Jonathan Hartley    tartley at tartley.com    http://tartley.com
Made of meat.       +44 7737 062 225       twitter/skype: tartley

More information about the python-uk mailing list