mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 15:12:01 +00:00
ce494d65de
The numpy API constants can check past the end of the API array if the numpy version is too old thus causing a segfault. The current list of functions requires numpy >= 1.7.0, so this adds a check and exception if numpy is too old. The added feature version API element was added in numpy 1.4.0, so this could still segfault if loaded in 1.3.0 or earlier, but given that 1.4.0 was released at the end of 2009, it seems reasonable enough to not worry about that case. (1.7.0 was released in early 2013). |
||
---|---|---|
.. | ||
pybind11 |