4 ms·
In 3.6, this will be ordered. Python creates a dict out of the keywords arguments, so before 3.6, this creates the old hash-ordered dict which is covered to an
by yes_or_gnome 10y ago
In 3.6, this will be ordered. Python creates a dict out of the keywords arguments, so before 3.6, this creates the old hash-ordered dict which is covered to an OrderedDict.
But, as the other commenter mentioned, a list of 2-tuples is the safe bet.