Calling Python

Table of Contents
sipEvalMethod — Call a Python method
sipCallHook — Call a hook

sipEvalMethod

Name

sipEvalMethod -- Call a Python method

Synopsis

PyObject * sipEvalMethod(const sipPyMethod * pm, PyObject * args);

Description

Return Value

A pointer to the Python object which the methods returns or NULL, if the method could not be found.

pm

A pointer to SIPs info about the method, usually taken from SIPs method cache.

args

Pointer to a tuple with the parameters.

sipCallHook

Name

sipCallHook -- Call a hook

Synopsis

void sipCallHook(char * hookname);

Description

From the __builtin__ module dictionary get the function hook. Call the hook and discard any result.

hookname

Character string with the hook function name.