ufunc.nargs¶The number of arguments.
Data attribute containing the number of arguments the ufunc takes, includingoptional ones.
Notes
Typically this value will be one more than what you might expect because allufuncs take the optional “out” argument.
Examples
>>>np.add.nargs3>>>np.multiply.nargs3>>>np.power.nargs3>>>np.exp.nargs2