On Tue, Dec 22, 2020 at 06:33:41PM -0500, Alan G. Isaac wrote:
> This comment completely misses the point.
> This "weird type" qualifies as a Sequence.
> (See collections.abc.)
It's not weird because of the sequence abc, it's weird because of its
treatment of equality, using the `==` operator as an element-wise
operator instead of an object equality boolean operator.
Numpy is entitled to do this, but we're not obligated to take heroic
measures to integrate numpy arrays with unittest methods. If we can do
so easily, sure, let's fix it.
I think Ivan's suggestion that the assertSequenceEqual method fall back
on element-by-element comparisons has some merit.
--
Steve
___
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/36XKAIBLKDXSDOBFEI53OKIPV27WZPZ6/
Code of Conduct: http://python.org/psf/codeofconduct/