creating an object in embedded python

db dbunix at yahoo.com
Tue May 13 18:22:41 EDT 2003


Hi,

How do I create an instance of an class and then call
methods within that instance in embedded python?

module = PyImport_ImportModule( "mymod" );
???
retval = PyObject_CallMethod( ???, "mymeth", "i",
myint );

db

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com





More information about the Python-list mailing list