Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Two dictionaries with equal keys and values are considered equal in Python, even if the order of the entries differ. By contrast, two OrderedDict objects are only equal if their respective entries are equal and if their order does not differ.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: