

@classdef.method('%')
@classdef.method('modulo')
def method_mod(self, space, w_other):
    if (space.is_kind_of(w_other, space.w_fixnum) or space.is_kind_of(w_other, space.w_bignum) or space.is_kind_of(w_other, space.w_float)):
        return self.method_mod_float_impl(space, space.float_w(w_other))
    else:
        raise space.error(space.w_TypeError, ("%s can't be coerced into Float" % space.obj_to_s(space.getclass(w_other))))

dataset/ETHPy150Open topazproject/topaz/topaz/objects/floatobject.py W_FloatObject.method_mod/original