Steven W. Orr schrieb:
> I have a table of integers and each time I look up a value from the 
> table I want to call a function using the table entry as an index into 
> an array whose values are the different functions.  I haven't seen 
> anything on how to do this in python.

def f():
    pass

fmap = { key: f }


fmap[key]()


Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to