March 2003
Intermediate to advanced
656 pages
39h 30m
English
__iadd__, __idiv__, __ifloordiv__, __imod__, __imul__, __isub__, __itruediv__
__iadd__(self,other) __idiv__(self,other) __ifloordiv__(self,other) __imod__(self,other) __imul__(self,other) __isub__(self,other) __itruediv__(self,other)
The augmented assignments
x
+=
y,
x
/=
y,
x
//=
y,
x
%=
y,
x
*=
y,
x
-=
y,
and
x
/=
y,
respectively, call these methods. Each method should modify
x in-place and return
self. Define these methods when
x is mutable (i.e.,
when x can change in-place).