[New-bugs-announce] [issue23162] collections.abc sequences don't check identity before equality

Devin Jeanpierre report at bugs.python.org
Sun Jan 4 09:05:06 CET 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue23162>
_______________________________________


More information about the New-bugs-announce mailing list