We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The Remarks Section says
Equivalent to A = A + B.
But that is not true. += operator uses __iadd__ method, if it is defined. If it's not defined, then it uses the __add__ method.
__iadd__
__add__
__iadd__ method does addition in place. __add__ method adds the two objects and returns a new object.
In depth discussion can be found here : https://stackoverflow.com/a/2347423/13345708
The Remarks can be edited to say
Equivalent to A = A + B, if iadd method is not defined
The text was updated successfully, but these errors were encountered:
Fixed addition assignment documentation, issue jprzywoski#21
9eb2e4d
Successfully merging a pull request may close this issue.
The Remarks Section says
But that is not true. += operator uses
__iadd__
method, if it is defined.If it's not defined, then it uses the
__add__
method.__iadd__
method does addition in place.__add__
method adds the two objects and returns a new object.In depth discussion can be found here : https://stackoverflow.com/a/2347423/13345708
The Remarks can be edited to say
The text was updated successfully, but these errors were encountered: