How to execute lists of code? Or alternatives.

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Tue May 9 12:12:19 EDT 2000


Fredrik Lundh wrote in comp.lang.python:
> Remco Gerlich wrote:
> > What I would love to have is to __import__ a module from a string.
> > I don't think that's possible though.
> 
> # import module from string
> # fredrik lundh, may 2000
> 
> import imp, sys

Wow, never heard of that module. Thanks!

-- 
Remco Gerlich,  scarblac at pino.selwerd.nl
Hi! I'm a .sig virus! Join the fun and copy me into yours!



More information about the Python-list mailing list