def __rxor__(self, other): ''' >>> 1 ^ this # doctest: +ELLIPSIS <expression '1 xor this' ...> ''' from xotl.ql.expressions import xor_ return xor_(other, self)
def __xor__(self, other): ''' >>> this ^ 1 # doctest: +ELLIPSIS <expression 'this xor 1' ...> ''' from xotl.ql.expressions import xor_ return xor_(self, other)