programmatically calling a function

Carl Banks invalidemail at aerojockey.com
Sun Mar 6 00:16:38 CET 2005


Carl Banks wrote:
> Doug Schwarz wrote:
> > I don't see how getattr solves the original problem.  What,
exactly,
> is
> > the first argument to getattr?
>
>
> mod = __import__(__this__)

That should be __import__(__name__) 
Silly me.


-- 
CARL BANKS




More information about the Python-list mailing list