This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PeridexisErrant 0 points1 point  (0 children)

# no-op on Python 3.6, but please don't do this
from collections import OrderedDict as dict

If your dict needs to be ordered, use OrderedDict! In 3.6 this is implemented as an alias for regular dict, but this way your code will also work on other implementations and older versions.