Name
__rand__, __rlshift__, __ror__, __rrshift__, __rxor__
Synopsis
__rand__(self,other
) __rlshift__(self,other
) __ror__(self,other
) __rrshift__(self,other
) __rxor__(self,other
)
Operators
y
&
x
,
y
<<
x
,
y
|
x
,
y
>>
x
,
and
y
^
x
,
respectively, call these methods when y
doesn’t have needed method __and__
, __lshift__
, and so on.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.