예제 #1
0
// PyObject* PyMethod_Class(PyObject *meth)
// Return value: Borrowed reference.
// Return the class object from which the method meth was created; if this was created from an instance, it will be the class of the instance.
func PyMethod_Class(meth *PyObject) *PyObject {
	return togo(C.PyMethod_Class(topy(meth)))
}
예제 #2
0
func (m *MethodObj) Class() Object {
	ret := C.PyMethod_Class(c(m))
	return newObject(ret)
}