En Mon, 30 Apr 2007 18:08:30 -0300, Bart <[EMAIL PROTECTED]> escribió:
> I have static linked module in application plugin. > > Thirst thing how to remove this module from memory after Py_Finalize(); > Because there is segfault after - deactivate,activate this plugin. > > PyImport_AppendInittab("module_name",init_module_name); > Py_Initialize(); I don't understand exactly what you want to do. You have a module; it is statically linked; using PyImport_AppendInitTab you tell Python how to initialise it when someone imports the module. > How to check what provides this module ? At first, you have to import the module: import module > import sys > print sys.modules (is loaded?) After importing it, should appear in that list. > dir(module_name) is it enough? This will show the module namespace: usually, classes and functions defined inside it. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list