removing module
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Tue May 1 18:54:13 EDT 2007
En Mon, 30 Apr 2007 18:08:30 -0300, Bart <uzi18 at o2.pl> 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
More information about the Python-list
mailing list