I noticed that this recipe seems to use __rlshift__
, __ror__
like operators. But, they aren't in the documentation! Can anyone explain these and perhaps point to some docs?
views:
43answers:
1
+3
A:
http://docs.python.org/3.1/reference/datamodel.html?highlight=rlshift
__rlshift__
is the swapped operands version of __lshift__
, used when the right-hand operand supports the operation but the left-hand operand doesn't.
Mark Dickinson
2010-03-08 09:01:07