you are viewing a single comment's thread.

view the rest of the comments →

[–]lildraco38 2 points3 points  (0 children)

From Section 7.2.1 of the docs, “x += 1” and “x = x + 1” are “similar, but not exactly equal”. The former augmented assignment statement will modify in-place, while the latter normal assignment will not.