Ejemplo n.º 1
0
 def __get__(self, obj, objtype=None):
     '''Allow a JIT function to be bound as a method to an object'''
     if obj is None:  # Unbound method
         return self
     else:  # Bound method
         return create_bound_method(self, obj)
Ejemplo n.º 2
0
 def __get__(self, obj, objtype=None):
     '''Allow a JIT function to be bound as a method to an object'''
     if obj is None:  # Unbound method
         return self
     else:  # Bound method
         return create_bound_method(self, obj)