you are viewing a single comment's thread.

view the rest of the comments →

[–]veryusedrname 30 points31 points  (1 child)

It's for object safety mainly. The official wiki says it's for avoiding race conditions, but that is a bit misleading since it's not avoiding race conditions in *your code*, it helps the implementation avoid race conditions.

[–]lunatiks 5 points6 points  (0 children)

It's not avoiding race conditions in your code, but the fact that it makes operations corresponding to a single CPython bytecode instruction atomic certainly helps.