After nearly 20 years of working with Python, the author was surprised to learn that `some_list += x` modifies the list in place, unlike `some_list = some_list + x`. This led to a realization about the `__iadd__` operator function, which allows in-place modification as part of Python's operator overloading conventions.

2m read timeFrom kivikakk.ee
Post cover image

Sort: