Given that "Case Statements" are more compact and less redundant than a 
sequence of if-elif statements, and usually can contain embedded match lists:
Is there any chance future versions of Python will adopt a case structure?

Something like

select x
   case in [1,2,3,5,7,9]
   print ....
   case in [4,6,8]
   print ....
   case else
   print ....

Just a thought.

JJ
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to