On Tue, Dec 8, 2009 at 5:53 PM, hong zhang <henryzhan...@yahoo.com> wrote: > Python does not have switch statement. Any other option does similar work?
Yes, a dictionary with functions as values: http://simonwillison.net/2004/May/7/switch/ Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list