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
Division-assignment operator raises error, separate division and assignment work #10565
Comments
I assume that you are on Python 3. This is expected behavior on Python 3. The result of When you try to do in-place assignment, the |
Thanks for the clear explanation, that makes sense. The below helped me to understand the difference:
If I understand correctly, the fact that no new object is created with One way around the issue is to use |
That's right. |
Sorry if this is a known issue, I searched for it but there are so many results...
This works:
But this raises an error:
Namely:
This is surprising since I would expect them to do the same.
Using numpy version 1.14.0.
The text was updated successfully, but these errors were encountered: