Call a function using a variable

Colin Meeks colinmeeks at home.com
Sun Apr 29 10:20:33 EDT 2001


Thanks all, just what I was after.

Colin

"Colin Meeks" <colinmeeks at home.com> wrote in message
news:oBjG6.74710$_P.20443037 at news3.rdc1.on.home.com...
> Does anybody know if it's possible to do something along the following
lines
> :
>
> myfunction="test"
> x=myfunction
>
> Basically what I want is when the x variable gets declared it get's it's
> data from the function test()
> I used to do this all the time in Clipper doing the following
>
> myfunction="test"
> x=&myFunction()
>
> Thanks. Colin
>
>





More information about the Python-list mailing list