from spam import eggs, spam at runtime, how?

Paul Rubin http
Mon Dec 8 16:31:03 EST 2003


aahz at pythoncraft.com (Aahz) writes:
> >Another way:   
> >
> >  exec 'import spam'
> 
> That's precisely what we were trying to avoid.

I missed that part.  The alternatives don't really seem better though.




More information about the Python-list mailing list