0

How do you enforce ordering for a dictionary-style object?

This question was addressed to me. I guess it also asks what are the good standards regarding dictionary-style objects, not sure. Need some clarification please.

7th Nov 2016, 4:21 PM
Sergiu Lucec
Sergiu Lucec - avatar
1 Antwort
0
dictionaries are unordered for nature. but you can use collections.OrderedDict. look at this link. it will answer to your question: http://stackoverflow.com/questions/6083531/order-of-keys-in-JUMP_LINK__&&__python__&&__JUMP_LINK-dictionary
11th Nov 2016, 10:03 PM
Riccardo M.
Riccardo M. - avatar