• Jason Rhinelander's avatar
    array: fix base handling · f86dddf7
    Jason Rhinelander authored
    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.
    f86dddf7
test_numpy_array.py 9.31 KB