Compilation failure on Py 3.10
Compilation on conda-forge on python 3.10 seems to fail with
src/array.cc:848:27: error: cannot convert 'double' to 'PyObject*' {aka '_object*'}
Source here (note that CI logs have a finite retention period).
Compilation on conda-forge on python 3.10 seems to fail with
src/array.cc:848:27: error: cannot convert 'double' to 'PyObject*' {aka '_object*'}
Source here (note that CI logs have a finite retention period).
This is due to https://bugs.python.org/issue43475 - NaN
s won't hash equal any more. I'll try to prepare a patch, but it will involve some behavioural change...
Indeed, thanks for the pointer. This change to CPython is quite unfortunate from tinyarray's point of view. Tinyarrays are designed to be (faster and with numerical operations) drop-in replacements for tuples of numbers. Up to now they hashed exactly as tuples of numbers.
Now this is no longer possible. A tuple that is created from a tinyarray that contains a NaN will necessarily have a different hash value (except in the rare case of a hash collision).
mentioned in merge request !14 (merged)
closed with commit 21707c07
closed with merge request !14 (merged)