[Python-ideas] Another idea for a switch statement

Lucas Malor rwwfjchuws at snkmail.com
Tue Oct 11 16:33:55 CEST 2011


Hello all. I read PEP 275 but I don't like the syntax of examples. What do you think about something like this?

if x case value1 :
    [...]
case value2 :
    [...]
case value3 :
    [...]
else :
    [...]



More information about the Python-ideas mailing list