New submission from BODIN <[EMAIL PROTECTED]>:

I am not the code :

if toto == 1:
   ...
elsif toto == 2:
      ...
     elsif

In ADA for example :

      case C is                                    --  4 Start a case
statement
         when Red => Result := 1;
         when Blue =>Result := 2;
         when Black .. Brown => Result := 3;
         when Orange | Indigo => Result := 4;
         when  others => Result := 5;required for unspecified cases.
      end case; 

Is it not better?

----------
components: Interpreter Core
messages: 63555
nosy: dbodin
severity: normal
status: open
title: Missing case / switch / evaluate
versions: 3rd party

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2293>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to