

@classdef.method('bind')
def method_bind(self, space, w_receiver):
    if (not self.w_owner.is_ancestor_of(space.getclass(w_receiver))):
        raise space.error(space.w_TypeError, ('bind argument must be an instance of %s' % self.w_owner.name))
    else:
        return W_MethodObject(space, self.w_owner, self.w_function, w_receiver)

dataset/ETHPy150Open topazproject/topaz/topaz/objects/methodobject.py W_UnboundMethodObject.method_bind/original