case/switch statement?

Philippe C. Martin philippe at
Sat Jun 11 21:06:41 CEST 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
> <>.

More information about the Python-list mailing list