On 05/14/2013 12:12 PM, Nathann Cohen wrote:
Hellooooooooo everybody !
I've got a small Python question whose answer you probably know.
Given a dictionary my_dict, I cannot expect my_dict.values() to always
return its elements in the same ordering, as I understand it depends on
the ordering of the keys which is machine-dependent.
This being said, if I have two dictionaries my_dict1, my_dict2 with the
*same* sets of keys but different values, do we expect that if the k^th
element of my_dict1.values() corresponding to key KEY, then the k^th
element of my_dict2.values() also corresponds to key KEY ?
I don't know, but I certainly would not rely on that. Why would you need
this assumption anyway?
--
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.