from spam import eggs, spam at runtime, how?

Robert Brewer fumanchu at amor.org
Mon Dec 8 13:26:08 EST 2003


I worote several ugly version of this for a Cookbook recipe. You just convinced me to go update it:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/223972


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org

> -----Original Message-----
> From: Rene Pijlman 
> [mailto:reply.in.the.newsgroup at my.address.is.invalid] 
> Sent: Monday, December 08, 2003 8:33 AM
> To: python-list at python.org
> Subject: from spam import eggs, spam at runtime, how?
> 
> 
> How do I do:
> 
>    from spam import eggs
> 
> ... when 'spam' is only known at runtime?
> 
> -- 
> René Pijlman
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 





More information about the Python-list mailing list