Message367615
Hi, I was thinking if we could add equality between array and list to work out of the box on the supported datatypes by arrays.
Currently, comparing a list and an array with the same contents returns False.
Also, creating an array of floats from a listA, then turning that array into a listB, returns different contents between listA and listB.
It's somehow counter-intuitive for me as even if the underlying implementations are different between array and list, they can be viewed as an array data structure but with different restrictions/implementations, along with that, arrays compare to each other correctly, and lists compare to each other correctly.
based on that, switching some lists to arrays in a python codebase may break some equality conditions within that code between lists and arrays |
|
Date |
User |
Action |
Args |
2020-04-29 02:52:17 | Ahmed Amr | set | recipients:
+ Ahmed Amr |
2020-04-29 02:52:17 | Ahmed Amr | set | messageid: <1588128737.73.0.376280736154.issue40433@roundup.psfhosted.org> |
2020-04-29 02:52:17 | Ahmed Amr | link | issue40433 messages |
2020-04-29 02:52:17 | Ahmed Amr | create | |
|