Esempio n. 1
0
// PyObject* PyFunction_GetDefaults(PyObject *op)
// Return value: Borrowed reference.
// Return the argument default values of the function object op. This can be a tuple of arguments or NULL.
func PyFunction_GetDefaults(op *PyObject) *PyObject {
	return togo(C.PyFunction_GetDefaults(topy(op)))
}
Esempio n. 2
0
// Defaults returns the argument default values for the function "fn".  This may
// be nil or a Tuple of values.
//
// Return value: Borrowed Reference.
func (fn *Function) Defaults() (Object, error) {
	ret := C.PyFunction_GetDefaults(c(fn))
	return obj2ObjErr(ret)
}