How do I create an array of functions?

Steven W. Orr steveo at syslang.net
Sun Feb 18 10:36:49 EST 2007


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.

TIA

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net



More information about the Python-list mailing list