howto load and unload a module
Guy Robinson
guy at NOSPAM.r-e-d.co.nz
Fri Jun 24 08:05:54 EDT 2005
>
> Why would you want to? Doing what you describe doesn't require that you
> "unload" a module, unless that means something more to you than, say,
> merely releasing the memory used by it (which is likely insignificant to
> you).
>
Hi Peter,
I have an application with Python embedded. I'm parsing a script directory to
build a dictionary of script names with descriptions of what the scripts etc
extracted from each script. The user then selects one of these scripts to
execute by the embedded python.
Some of these scripts could potentially be quite large. Also the list of scripts
could be quite large. So the main reason for unloading modules is to save memory.
Regards,
Guy
More information about the Python-list
mailing list