def __rrshift__(self, other): ''' >>> 1 >> this # doctest: +ELLIPSIS <expression '1 >> this' ...> ''' from xotl.ql.expressions import rshift return rshift(other, self)
def __rshift__(self, other): ''' >>> this >> 1 # doctest: +ELLIPSIS <expression 'this >> 1' ...> ''' from xotl.ql.expressions import rshift return rshift(self, other)