Re: PyObject_CallObject: difference between functions and class methods

2007-09-27 Thread Hrvoje Niksic
[ Note that there is now a mailing list dedicated to the C API: http://mail.python.org/mailman/listinfo/capi-sig ] mauro <[EMAIL PROTECTED]> writes: > I am trying to call within a C extension a Python function provided as > an argument by the user with: PyObject_Call(). The C extension should > w

PyObject_CallObject: difference between functions and class methods

2007-09-27 Thread mauro
Hi all! I am trying to call within a C extension a Python function provided as an argument by the user with: PyObject_Call(). The C extension should work also if the user supplies a class method, but in this case I am getting an error. Do I need to explicitly pass 'self' as an argument to PyObject