what the hell python, why does it change the ordering?
>>57771696
>what the hell python, why does it change the ordering?
Dicts do not have a defined order
>>57771696
>ordering
>in a dict
JUST
Do you know what an associative array is?
>>57771696
>csdegree.jpg
"beta" and "bet" don't have the same hash value, and a dict is just a hash table.
Why do you care about the order of a dict anyways?
Also, there's an ordered dict, aptly called OrderedDict, so use that.
>>57771696
https://docs.python.org/2/library/stdtypes.html#dict.items
>>57771771
yeah i guess i have to
>>57771696
Why do you need ordering in a dictionary? Sounds like shoddy code...
>>57771771
soon all dicts will be ordered
>>57771866
so it prints stuff in the order that the dict is created/modified
>>57771941
why?
>>57771947
cuz i fucking feel like it that's why
>>57771958
You want a CaterToMyWhimsDict then
>>57771941
You're supposed to store timestamps for that. Relying on the ordering of the dictionary is extremely sloppy.
>tfw /g/ is this easily trolled
>>57771895
Your mom already ordered my dict last night.