case/switch statement?
deelan
ggg at zzz.it
Sat Jun 11 12:25:07 EDT 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?"
<http://www.python.org/doc/faq/general.html#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:
<http://groups-beta.google.com/groups?q=comp.lang.python+switch+statement>
HTH.
--
deelan <http://www.deelan.com>
More information about the Python-list
mailing list