case/switch statement?

D H d at e.f
Mon Jun 20 04:12:19 CEST 2005


Peter Hansen wrote:
> D H wrote:
> 
>> Peter Hansen wrote:
> 
> [some stuff Doug didn't like]
> 

Actually, this is what you snipped, stuff you didn't like, because the 
very mention of "boo" causes you such fits:

 > Since you and Steve Holden agree that a case statement is useful, why
 > don't you propose it for python, or add it to the wiki page for Python
 > 3000.
 >
 > Here is the syntax the developers of your favorite language boo (
 > http://boo.codehaus.org/ ) are using:
 >
 > given x:
 >     when 1:
 >         ...
 >     when 2:
 >         ...
 >     otherwise:
 >         ...



More information about the Python-list mailing list