<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div><div>Hi,<br><br></div>I recently compared OrderedDict instances while writing unit tests, and discovered an interesting behavior. If I create two ordered dictionaries with the same keys/values in the same order, I observe that their values are not equal when I compare them.<br><br></div><div>I recently asked a question about this on Stackoverflow:<br><a href="http://stackoverflow.com/questions/34312674/why-values-of-an-ordereddict-are-not-equal" target="_blank">http://stackoverflow.com/questions/34312674/why-values-of-an-ordereddict-are-not-equal</a><br><br></div><div>Moreover, another user observed that keys of ordered dictionaries are compared in an order insensitive way:<br><a href="http://stackoverflow.com/questions/34320600/why-does-the-ordereddict-keys-view-compare-order-insensitive" target="_blank">http://stackoverflow.com/questions/34320600/why-does-the-ordereddict-keys-view-compare-order-insensitive</a><br><br></div><div>Are there any reasons for such implementation choices? As it appears disturbing for many people, would it be possible to update these behaviors?<br><br></div><div>Best Regards,<br></div><div>Alexandre.<br></div></div>
</div><br></div>