I’m not sure whether it’s the same in Python.
Has anyone tried that before?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There hardly is a difference in the work python performs for either statement:
The difference is a
INPLACE_ADDversus aBINARY_ADD.The resulting timings are too close to call which one would be faster:
So, in python, the difference is negligible. Don’t worry about it.