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

How will they reconcile this?

  In [10]: OrderedDict((('a', 1), ('b', 2))) == OrderedDict((('b', 2), ('a', 1)))
  Out[10]: False
  In [11]: dict((('a', 1), ('b', 2))) == dict((('b', 2), ('a', 1)))
  Out[11]: True


The equality test for dict objects will be unchanged. Note that it's not as if they said "Oh gee let's just alias dict() to OrderedDict() and call it a day".


The entire test suite still passes. What do that tell you?




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: