compufreak wrote:
Yes, using a dictionary is the best way to do this, because it offers a direct translation from a string to the function, and is very extensible.
You could also consider using globals()[name] or some variation on that. -- Greg