New submission from Devin Jeanpierre:

For sequence __contains__ and other scenarios, identity is checked before 
equality, which I've heard is so that "for x in y: assert x in y" doesn't ever 
fail with an AssertionError (even with NaN and so on). This is not the case for 
collections.abc-based sequences, which is a jarring inconsistency.

----------
components: Library (Lib)
messages: 233399
nosy: Devin Jeanpierre
priority: normal
severity: normal
status: open
title: collections.abc sequences don't check identity before equality
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23162>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to