dict order

Robert Bossy Robert.Bossy at jouy.inra.fr
Wed Jun 18 05:22:40 EDT 2008


Hi,

I wish to know how two dict objects are compared. By browsing the 
archives I gathered that the number of items are first compared, but if 
the two dict objects have the same number of items, then the comparison 
algorithm was not mentioned.

Note that I'm not trying to rely on this order. I'm building a 
domain-specific language where there's a data structure similar to 
python dict and I need an source of inspiration for implementing 
comparisons.

Thanks
RB



More information about the Python-list mailing list