Call a function using a variable

Colin Meeks colinmeeks at home.com
Fri Apr 27 15:17:40 EDT 2001


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