Declaring self in PyObject_CallMethod

2005-05-08 Thread lamthierry
Calling a python method from C++ has the following signature: PyObject * PyObject_CallMethod(PyObject *self, char *method_name, char *arg_format, ...); I'm having trouble figuring out how to declare self. Let's say my python file is called stuff.py and is like the following,

Re: Declaring self in PyObject_CallMethod

2005-05-09 Thread Fredrik Lundh
"[EMAIL PROTECTED]" wrote: > Calling a python method from C++ has the following signature: > > PyObject * > PyObject_CallMethod(PyObject *self, char *method_name, > char *arg_format, ...); > > I'm having trouble figuring out how to declare self. Reading the C API documentation

Re: Declaring self in PyObject_CallMethod

2005-05-13 Thread harold fellermann
Hi, > Calling a python method from C++ has the following signature: > > PyObject * > PyObject_CallMethod(PyObject *self, char *method_name, > char *arg_format, ...); > > I'm having trouble figuring out how to declare self. > > Let's say my python file is called stuff.py and is