Callback function call from C++

Sebastian Huber sebastian-huber at
Fri Sep 13 01:49:47 EDT 2002

I want to install a Python callback function in a C++ extension module. 
Everything works as desired, but is it possible to get the argument list 
length and types of the function in advance. For example:

PyCallable_Check( o) != 0
	get the arglist and return 0 if not ok
install the callback function

At the moment I get an error at the first call if the arglist is not ok, and I 
want to avoid this.


More information about the Python-list mailing list