NumPy 2.4.0 Release Notes
The NumPy 2.4.0 release continues the work to improve free threaded Python support, user dtypes implementation, and annotations. There are many expired deprecations and bug fixes as well.
This release supports Python versions 3.11-3.14
Highlights
Apart from annotations and same_value kwarg, the 2.4 highlights are mostly
of interest to downstream developers. They should help in implementing new user
dtypes.
Many annotation improvements. In particular, runtime signature introspection.
New
castingkwarg'same_value'for casting by value.New
PyUFunc_AddLoopsFromSpecfunction that can be used to add user sort loops using theArrayMethodAPI.New
protocol.