[Python-3000] Switch and static, redux

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 6 02:34:56 CEST 2006


Andrew Clover wrote:

> Here's another syntax off the top of my head - put the first case in the 
> switch statement?
> 
>    switch biscuit.type if 'digestive':
>        ...
>    elif in 'jammy_dodger', 'garibaldi':
>        ...
>    else:
>        ...

Ugly.

--
Greg


More information about the Python-3000 mailing list