|
|
|
|
|
by skobes
426 days ago
|
|
I once broke some Python by changing a = a + b to a += b. If a and b are lists, the latter modifies the existing list (which may be referenced elsewhere) instead of creating a new one. I think Python is the only language I've encountered that uses the + operator with mutable reference semantics like this. It seems like a poor design choice. |
|