No, you cannot. You should always think dictionaries as unordered
structures. Dictionary keys depend not only on the keys themselves but
on the operations performed on the dictionary. Take a simple case with
hash collision:

{{{
sage: A={}
sage: B={}
sage: A[hash('a')]=0
sage: A['a']=1
sage: B['a']=1
sage: B[hash('a')]=0
sage: A==B
True
sage: A.values()
[0, 1]
sage: B.values()
[1, 0]
}}}

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to