public Method(object function, object instance) { if (instance == null) { throw PythonOps.TypeError("unbound methods must have a class provided"); } _func = function; _inst = instance; }