Re:Python overtakes JavaScript as most questioned language o...
by detaro on Saturday April 20, 2019 @08:50AM
(#19706260)
That depends on the order in which the values are are returned by items(), which you likely do not want.
>>> tuple({1:2,3:4}.items()) == tuple({3:4,1:2}.items())
False
>>> frozenset({1:2,3:4}.items()) == frozenset({3:4,1:2}.items())
True
tuple(d.items())