News for hackers. Stuff that matters.
Re:Examples of Incorrect Abstractions in Other Languages by G4E on Wednesday May 20, 2020 @07:40AM (#23245686)
Python's list sum are funny like that.

x+=y is equivalent to x.append(y)

x = x + y creates a new list, then assign it to x (highly inefficient in a loop)

There are no comments on this comment yet.