Skip to content
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

Correct Quantity.list to .tolist, overriding the correct ndarray method #3050

Merged
merged 1 commit into from Oct 27, 2014

Conversation

mhvk
Copy link
Contributor

@mhvk mhvk commented Oct 23, 2014

While testing ndarray methods, I noticed Quantity does not override tolist, but instead mistakenly has a list method. This PR corrects this mistake. Strictly, this is a bug, but since .list only gives a NotImplementedError it is probably not worth backporting.

@mhvk
Copy link
Contributor Author

mhvk commented Oct 23, 2014

@embray - this is really a trivial change, and my main uncertainty is about whether it should have a changelog entry, and whether you want it backported. Thanks!

@embray
Copy link
Member

embray commented Oct 24, 2014

Could you remove the change to the astropy_helpers submodule and add a bugfix entry to the changelog?

@mhvk
Copy link
Contributor Author

mhvk commented Oct 24, 2014

@embray - bugfix for 0.4 or 1.0?

@mhvk mhvk added this to the v0.4.3 milestone Oct 24, 2014
@mhvk
Copy link
Contributor Author

mhvk commented Oct 24, 2014

@embray - I picked 0.4.3 as the milestone, since it is a bug in 0.4 as well. Can change if you prefer, but if you think it is fine, just go ahead and merge.

@embray
Copy link
Member

embray commented Oct 27, 2014

Sounds fine to me.

embray added a commit that referenced this pull request Oct 27, 2014
Correct Quantity.list to .tolist, overriding the correct ndarray method
@embray embray merged commit c9b7637 into astropy:master Oct 27, 2014
@mhvk mhvk deleted the quantity-tolist branch October 27, 2014 14:52
embray added a commit that referenced this pull request Dec 31, 2014
Correct Quantity.list to .tolist, overriding the correct ndarray method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants