[Python-Dev] Switch statement

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jun 13 02:20:04 CEST 2006


skip at pobox.com wrote:
>     Greg> Multiple values could be written
> 
>     Greg>    case 'a':
>     Greg>    case 'b':
>     Greg>    case 'c':
>     Greg>      ...
> 
> That would be an exception to the rule that a line ending in a colon
> introduces an indented block.

Yes, but I don't see that as a big problem. It
seems fairly clear what it's supposed to mean.

If it bothers you, think of them as alternative
introductions to the same block.

--
Greg


More information about the Python-Dev mailing list