summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/getattr.py
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2021-05-12 17:02:06 +0200
committerDamien George <damien@micropython.org>2021-05-13 22:16:14 +1000
commit57365d855734142deb030ebcd00c10efcedf554b (patch)
treed121b5fc9be3e172649d5c91eba81a559f183175 /tests/basics/getattr.py
parent6affcb0104336e629390b2bfba997f3446f9ea58 (diff)
downloadmicropython-57365d855734142deb030ebcd00c10efcedf554b.tar.gz
micropython-57365d855734142deb030ebcd00c10efcedf554b.zip
py/objarray: Prohibit comparison of mismatching types.
Array equality is defined as each element being equal but to keep code size down MicroPython implements a binary comparison. This can only be used correctly for elements with the same binary layout though so turn it into an NotImplementedError when comparing types for which the binary comparison yielded incorrect results: types with different sizes, and floating point numbers because nan != nan.
Diffstat (limited to 'tests/basics/getattr.py')
0 files changed, 0 insertions, 0 deletions