コード例 #1
0
ファイル: dispatcher.py プロジェクト: FedericoStra/numba
 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)
コード例 #2
0
ファイル: dispatcher.py プロジェクト: austinteshuba/DBSCAN
 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)