#python #programming #language #efficiency
- It is the operation
_add_
and_mul_
. a += b
is the operation_iadd_
. When it is not implemented, the fallback is the_add_
_iadd_
is thelist.extend()
. Is the same forbytearray
andarray.array
.- For
immutable
objects, the_iadd_
is similar to the_add_
.
Warning
PERFORMANCE: Append on imutable
objects are inefficient
Warning
BUG: Does not put mutable
objects on immutable
ones.