matej_suchanek added a comment.
> list(dict.keys()) is not deterministic `list(dict.values())`, `list(dict.items())`, `dict.popitem()`, `list(set)`, `set.pop()` as well. In general, any iteration over a dict or set is non-deterministic. > Unfortunately the difference is between Python 3.6/3.7+ and previous releases but I also don't know whether the results of 2.7 - 3.5 are equal. <3.3 and 3.3-3.5 have different results due to "hash randomization <https://docs.python.org/3/reference/datamodel.html#object.__hash__>" added in 3.3 (see the second gray box). TASK DETAIL https://phabricator.wikimedia.org/T220099 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: matej_suchanek, Dvorapa, Aklapper, Xqt, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
