| ▲ | scoofy 3 days ago | |||||||
Lists are mutable, tuples are not… that’s a massive difference if I’m editing code deep in a function I wrote two years ago. | ||||||||
| ▲ | zahlman 3 days ago | parent [-] | |||||||
The point is that you clearly aren't mutating it in the current context. Therefore, knowing that you could mutate it doesn't help you understand what the current code is doing, nor guide you away from mistakes (as you would have no reason to try to mutate it). | ||||||||
| ||||||||