mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
numpy arrays aren't currently properly setting base: by setting `->base` directly, the base doesn't follow what numpy expects and documents (that is, following chained array bases to the root array). This fixes the behaviour by using numpy's PyArray_SetBaseObject to set the base instead, and then updates the tests to reflect the fixed behaviour.
9.3 KiB
9.3 KiB