This question came up on my review queue, and I'm wondering if there's a canonical version of these "X variable (or name or whatever they're called in Python) gets mutated by changing a different reference to it" questions.
These kinds of questions spring up fairly frequently for other languages, so I thought maybe there was a canonical dupe question for Python.