dynamic modules
Fernando Pérez
fperez528 at yahoo.com
Mon Dec 17 07:15:30 EST 2001
Marek Budyn wrote:
> Hi!
>
> I wanted go create dynamically loaded and removed plugins. I mean, id a
> module a initalizes with 10 MB data structude, i would like to remove it
> from memory if it is not needed eg.
>
> p1 = import plugin1
>
> ...
>
> unload(p1)
>
> Is it possible in python ? And if so, how can I do this ?
> Thanks for help!
import plugin1 as p1
...
del p1
In the next gc pass it should get picked up.
f
More information about the Python-list
mailing list