BUG: incorrect type for objects whose __len__ fails - #7397
Merged
Merged
Conversation
Member
Author
|
Don't merge this, I want to investigate a little more. |
Member
Author
|
Actually I think my fix in #7266 was the right idea, but there was another bug lurking, which I've now fixed. I was missing a call to It seems that if |
Member
|
Perhaps related to #7399 ? |
Member
|
The patch looks solid to me. @mhvk, any chance you can check if this fixes the astropy issue? |
Contributor
Member
|
Thanks @mhvk! |
Member
|
Oh, and thanks @ahaldane too, of course :-) |
njsmith
added a commit
that referenced
this pull request
Mar 9, 2016
BUG: incorrect type for objects whose __len__ fails
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7393, see discussion there. Caused by a bug introduced in #7266.
This reverts the behavior of the following code be the same as before #7266