Hacker News new | ask | show | jobs
by kingkilr 5332 days ago
That isn't an undefined side-effect, that's the definition of the operation.
1 comments

It depends on which scope you define it at. Within the python interpreter, and the guarantees it gives, it is one of the definitions. However, at a higher level, the definition is really to give one variable the value of one list appended to another; without knowing how python works, you can't guarantee that it will be a new list.