8000 ENH: Make diagonal method return a view. by charris · Pull Request #3604 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Make diagonal method return a view. #3604

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

charris
Copy link
Member
@charris charris commented Aug 12, 2013

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

Curiously, diagonal method returning a view was not enabled for numpy
1.8.0-devel when 1.7.0 was tagged, so it is not tested as well as
might be desired.

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

Curiously, diagonal method returning a view was not enabled for numpy
1.8.0-devel when 1.7.0 was tagged, so it is not tested as well as
might be desired.
@charris
Copy link
Member Author
charris commented Aug 12, 2013

An option here is to add a copy argument to the call. That might be generally useful in any case.

@charris
Copy link
Member Author
charris commented Aug 12, 2013

See also #3608 for an alternate patch that removes references to this happening in 1.8. One or the other should be applied, but not both.

@charris
Copy link
Member Author
charris commented Aug 15, 2013

This should not go in. I've tried making the multiple fields return a view and some tests that should pass, fail. So I think this sort of thing needs more testing before a release.

@charris
Copy link
Member Author
charris commented Aug 15, 2013

Closing this. Will resubmit when 1.9 opens.

@charris charris closed this Aug 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0