A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-June/065843.html below:

[Python-Dev] Switch statement

[Python-Dev] Switch statement [Python-Dev] Switch statementGreg Ewing greg.ewing at canterbury.ac.nz
Sun Jun 11 02:47:06 CEST 2006
skip at pobox.com wrote:

>     switch raw_input("enter a, b or c: "):
>         case 'a':
>             print 'yay! an a!'
>         case 'b':
>             print 'yay! a b!'
>         case 'c':
>             print 'yay! a c!'
>         else:
>             print 'hey dummy! I said a, b or c!'

Before accepting this, we could do with some debate about the
syntax. It's not a priori clear that C-style switch/case is
the best thing to adopt.

--
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4