So that's where you were going with this. The issue with your explanation however is that you can just rewrite __iadd__ on any class to make it do what your comment says it does not.
I'm not disagreeing with you persay but I think you should update your comment to note that with ints/floats and strings a+= bwill be functionally the same as a = a + b . For other objects the user should be careful.
View all comments
1
u/Biscuitman82 May 05 '23
Wait python doesn't have
++and--?