Example #1
0
def getMethods(interp, this):
    methods = []
    for name in this.refl_klass.methods.keys():
        reflection_method = k_ReflectionMethod.call_args(
            interp, [interp.space.wrap(this.refl_klass.name),
                     interp.space.wrap(name)])
        methods.append(reflection_method)

    return interp.space.new_array_from_list(methods)
Example #2
0
def getMethod(interp, this, name):
    return k_ReflectionMethod.call_args(
        interp, [interp.space.wrap(this.refl_klass.name), interp.space.wrap(name)]
    )