module loading/unloading mechanism

Matthias Scheidegger mscheid at iam.unibe.ch
Fri Feb 15 07:27:24 EST 2002


Hi,

I'm need some way to do module loading/unloading similar to the way it's
done in the Linux kernel.
A module should be loadable from a string or marshalled object (ie. have
its own namespace and execute some initialization code) and be
unloadable (ie. remove all its namespace and execute cleanup code).
An important requirement is that the interpreter can't be restarted.
Module loading/unloading should be the only way to add/remove
"programs". The interpreter is embedded in a C program.
Afaik frozen modules could do the loading pretty smoothly. Any ideas
about unloading?

cheers

Matthias




More information about the Python-list mailing list