case/switch statement?
Leif K-Brooks
eurleif at ecritters.biz
Sat Jun 11 14:45:52 EDT 2005
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