from spam import eggs, spam at runtime, how?

Aahz aahz at pythoncraft.com
Mon Dec 8 21:48:45 CET 2003


In article <7xhe0bf5id.fsf at ruckus.brouhaha.com>,
Paul Rubin  <http://phr.cx@NOSPAM.invalid> wrote:
>
>Another way:   
>
>  exec 'import spam'

That's precisely what we were trying to avoid.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.




More information about the Python-list mailing list