case/switch statement?

deelan ggg at
Sat Jun 11 18:25:07 CEST 2005

Joe Stevenson wrote:
> Hi all,
> 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.  

strictly speaking, python does not
have a switch stamenent.

"Why isn't there a switch or case statement in Python?"

> Can someone please point me to the appropriate document, or 
> post an example?  I don't relish the idea especially long if-else 
> statements.

topic already beated to death, feel
free to browse the group archives:


deelan <>

More information about the Python-list mailing list