Example #1
0
 def __add__(self, other):
     command = OperatorCommand(self._id, "addition", Capsule.wrap((other,)))
     response = command.push(self._proxy)
     return response.interpret(self._proxy)
Example #2
0
 def __len__(self):
     command = OperatorCommand(self._id, "length", Capsule.wrap(()))
     response = command.push(self._proxy)
     return response.interpret(self._proxy)
Example #3
0
 def next(self):
     command = OperatorCommand(self._id, "next", Capsule.wrap(()))
     response = command.push(self._proxy)
     return response.interpret(self._proxy)
Example #4
0
	def __eq__(self, other):
		command = OperatorCommand(self._id, Capsule.wrap(other), 'equals')
		response = command.push(self._proxy)
		return response.interpret(self._proxy)