calling variable function name ?

TkNeo tarun.kap at
Tue Apr 8 21:52:49 CEST 2008

I don't know the exact terminology in python, but this is something i
am trying to do

i have 3 functions lets say

temp = "B" #something entered by user. now i want to call FB. I don't
want to do an if else because if have way too many methods like

var = "F" + temp
var(param1, param2)

This does not work ofcourse. Does anyone know how to implement this ?

More information about the Python-list mailing list