I use a tool to reformat my code from Python2 to Python3. One of the things that it always does is replacing
my_dict.items()
by
list(my_dict.items())
What is the motivation behind that? I assume that items() do not guaranty the ordering (it is stochastic, since dictionary is not ordered). So, by using list we order the key, value pairs.
Is my assumption correct?
 
     
    