• Jason Rhinelander's avatar
    array: set exception message on failure · 5749b502
    Jason Rhinelander authored
    When attempting to get a raw array pointer we return nullptr if given a
    nullptr, which triggers an error_already_set(), but we haven't set an
    exception message, which results in "Unknown internal error".
    
    Callers that want explicit allowing of a nullptr here already handle it
    (by clearing the exception after the call).
    5749b502
test_numpy_array.py 14.4 KB