Example #1
0
 def iter(self):
     try:
         method = self.custom_interface.methods[u"+iter"]
     except KeyError as error:
         return Object.iter(self)
     else:
         return method.call([self])
Example #2
0
 def iter(self):
     custom_interface = jit.promote(self.custom_interface)
     method = custom_interface.lookup_method(u"+iter")
     if method is None:
         return Object.iter(self)
     else:
         return method.call([self])
Example #3
0
 def iter(self):
     try:
         method = self.custom_interface.methods[u"+iter"]
     except KeyError as error:
         return Object.iter(self)
     else:
         return method.call([self])
Example #4
0
 def iter(self):
     method = self.custom_interface.lookup_method(u"+iter")
     if method is None:
         return Object.iter(self)
     else:
         return method.call([self])