def _cast_other(binary_op):
 def cast_op(self, other):
  'A wrapped binary operator that can handle non-Expression arguments.\n        '
  other = self.cast_to_const(other)
  return binary_op(self, other)
 return cast_op

def _cast_other ( binary_op ) : def cast_op ( self , other ) : other = self . cast_to_const ( other ) return binary_op ( self , other ) return cast_op
casts the second argument of a binary operator as an expression .