The ndarray.diagonal method currently returns a view, but it is not writeable. It is documented to return a writeable view in 1.10.