Hi Sebastian, great news! Does that mean that Windows Numpy 64 bit default integers are coming before Numpy 2.0, like in Numpy 1.27? Will there be another release before 2.0?
Best, Michael > On 2. Nov 2023, at 16:25, Sebastian Berg <sebast...@sipsolutions.net> wrote: > Hi all, > > just a heads up, the PR to change the default integer is merged on > main. This may cause issues, especially with Cython code because > `np.int_t` cannot be reasonably defined anymore. > > Other code may also want to vet usage of "long" in any variation. Much > code (like SciPy) simply supports any integer input, although even > there integer output may be relevant. New NumPy defines > `NPY_DEFAULT_INT` to be able to branch at runtime for backward > compatiblity you could use: > > #ifndef NPY_DEFAULT_INT > #define NPY_DEFAULT_INT NPY_LONG > #endif > > Unfortunately, I expect this to be a bit painful, please let us know if > it is too painful for some reason. > > But OTOH it has been a recurring surprise and is a common reason for > linux written software to not run on windows. > > - Sebastian > > _______________________________________________ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: michael.sieber...@gmail.com _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com