Function lookup using a directory.

Daniel Dittmar daniel.dittmar at sap.com
Mon Jun 18 11:52:45 EDT 2001


> Can I do this, I.E. have a class as a value in a dictionary
> and if so, what would the correct declaration be.

Put the command table after the class declarations and put the classes into
the dictionary, not the names.
command_table = {'0':    Help0,
             '1':    Help1,
             '2':    Help2,
             '3':    Help3 }

Daniel






More information about the Python-list mailing list