Python oneliner of the day: `x[:] = y` mutates x so it's the same as another list.
miniblog.
Related Posts
Many of my python docstrings could be shorter with a Rust type system. I end up writing "mutates" or "returns copy" rather than &mut Foo.
If foo.bar() mutates foo, it probably shouldn't also return foo. It violates the principle of least surprise when reading `baz = foo.bar()`