programmatically calling a function

Carl Banks invalidemail at aerojockey.com
Sat Mar 5 18:16:38 EST 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