-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Reference count error from subscript operation #5063
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
Comments
Shit, while I don't trust your type with that length + index not an error, a bug did seem to have sneaked past the tests... (Which I find weird, because I should have tests for this, but maybe just the 0-d case, and array_assert_equal has a weakness there) |
Ohh ok, the sequence stuff doesn't matter anyway. |
Or maybe it does :), heh... so I guess it is due to missing error handling, maybe in the non-tuple code making it an empty tuple. May look at it more today, otherwise tomorrow probably. |
OK, it is because |
A sequence which raises an error on item getting, should be just handled as a single index and not a tuple nd-index. Also fix some error handling. closes numpygh-5063
Running the following code with numpy 1.8.1
I get
With 1.9.0, I don't get a reference error, but the result is still wrong:
(I expect
1
.)The text was updated successfully, but these errors were encountered: