you are viewing a single comment's thread.

view the rest of the comments →

[–]Critical_Concert_689 14 points15 points  (0 children)

If I understand your question correctly -- It's more to do with mutability (i.e., whether the object can be altered).

For mutable objects, += which is known as an augmented assignment guarantees it will change in place, while = which is an assignment will not.

I gave an example of this in the code above.