You are correct! Python versions lower than 3.7 are not guaranteed to be sorted by insertion. This was previously handled by the OrderedDict object. In this pull request, I have proposed a solution to interchange the implementation depending on the python version number. ie. Python 3.6 and lower to use the OrderedDict while the newer versions use the normal guaranteed dict implementation. This means that all versions will produce the same output.
Thank you for your patience. Have a nice Golden Week! :-)
Coverage increased (+0.1%) to 83.408% when pulling b83420df42f36e171ee6884834ea8c4986575373 on DerAndereJohannes:dict_fix into f607f6230dd002fee3ea2f04954d629ceb90ef38 on gunyarakun:master.
You are correct! Python versions lower than 3.7 are not guaranteed to be sorted by insertion. This was previously handled by the OrderedDict object. In this pull request, I have proposed a solution to interchange the implementation depending on the python version number. ie. Python 3.6 and lower to use the OrderedDict while the newer versions use the normal guaranteed dict implementation. This means that all versions will produce the same output.
Thank you for your patience. Have a nice Golden Week! :-)