Exemplo n.º 1
0
// PyObject* PyMethod_Self(PyObject *meth)
// Return value: Borrowed reference.
// Return the instance associated with the method meth if it is bound, otherwise return NULL.
func PyMethod_Self(meth *PyObject) *PyObject {
	return togo(C.PyMethod_Self(topy(meth)))
}
Exemplo n.º 2
0
func (m *MethodObj) Self() Object {
	ret := C.PyMethod_Self(c(m))
	return newObject(ret)
}