numpy/numpy — pull request #3645 by charris (2013-08-20 18:56:20+00:00)
Title: ENH: Make the ndarray diagonal method return a view.

Also remove the test_diagonal_deprecation test and add test that
checks that a view is returned and that it is not writeable.

Closes #596.