case/switch statement?

Philippe C. Martin philippe at philippecmartin.com
Sat Jun 11 15:06:41 EDT 2005


I _love_ Python!


Leif K-Brooks wrote:

> Joe Stevenson wrote:
>> I skimmed through the docs for Python, and I did not find anything like
>> a case or switch statement.  I assume there is one and that I just
>> missed it.  Can someone please point me to the appropriate document, or
>> post an example?  I don't relish the idea especially long if-else
>> statements.
> 
> If you really want one, you could use
> <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410692>.




More information about the Python-list mailing list