Extending and embedding Python: mktuple() unresolved

Harri Pasanen (pa@tekla.fi)
09 Sep 1994 09:37:33 GMT

Hello,

I've been making yet another GUI interface for python (actually, an
interface to wxWindows, which has certain advantages over tkintern,
vpApp).

In the course of doing that I've been reading the extension document.

The "Extending and Embedding the Python Interpreter" document has the
following paragraph:

BEGIN_QUOTE:

Later, when it is time to call the function, you call the C function
call_object(). This function has two arguments, both pointers to
arbitrary Python objects: the Python function, and the argument list.
The argument list must always be a tuple object, whose length is the
number of arguments. To call the Python function with no arguments,
you must pass an empty tuple. For example:

object *arglist;
object *result;
...
/* Time to call the callback */
arglist = mktuple(0);
result = call_object(my_callback, arglist);
DECREF(arglist);

END_QUOTE

However, this mktuple() is unresolved, so apparently the document is a
bit dated at this point. How should I do this?

Thanks,

Harri

--
------------------------------------------------------
Harri Pasanen		pa@tekla.fi