is_method


Description:

[ Version ( since = "1.34" ) ]
public bool is_method ()

Determines if the callable info is a method.

For VFuncInfos, CallbackInfos, and SignalInfos, this is always true. Otherwise, this looks at the IS_METHOD flag on the FunctionInfo.

Concretely, this function returns whether get_n_args matches the number of arguments in the raw C method. For methods, there is one more C argument than is exposed by introspection: the "self" or "this" object.

Parameters:

info

a CallableInfo

Returns:

true if info is a method, false otherwise