Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Operator Magic Method
+= __iadd__(self,other)
-= __isub__(self,other)
*= __imul__(self,other)
@= __imatmul__(self,other)
/= __itruediv__(self,other)
//= __ifloordiv__(self,other)
%= __imod__(self,other)
**= __ipow__(self,other)
<<= __ilshift__(self,other)
>>= __irshift__(self, other)
&= __iand__(self, other)
^= __ixor__(self, other)
|= __ior__(self, other)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment