[EMAIL PROTECTED] wrote: > switch raw_input("enter a, b or c: "): > case 'a': > print 'yay! an a!' > case 'b': > print 'yay! a b!' > case 'c': > print 'yay! a c!' > else: > print 'hey dummy! I said a, b or c!'
Before accepting this, we could do with some debate about the syntax. It's not a priori clear that C-style switch/case is the best thing to adopt. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com