try / except not worknig correctly

2005-03-12 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
the code below will not execute the except section when i enter a number. what am i missing ? # .while 1: . print 'Pump Protection ? ' . #line 133 .try: .myInput = raw_input('A B C D E F G H I J K L ? ') .myInput = string.upper(myInpu

Re: try / except not worknig correctly

2005-03-12 Thread Robert Kern
'@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote: the code below will not execute the except section when i enter a number. what am i missing ? Something that will actually raise ValueError. It looks like you could use the help of the Python Tutor mailing list. http://www.python

Re: try / except not worknig correctly

2005-03-12 Thread Brian van den Broek
'@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])]) said unto the world upon 2005-03-12 19:20: the code below will not execute the except section when i enter a number. what am i missing ? # .while 1: . print 'Pump Protection ? ' . #line 133 .

Re: try / except not worknig correctly

2005-03-12 Thread '@'.join([..join(['fred', 'dixon']), ..join(['gmail', 'com'])])
1) the tutor list is really slow. but thanks. 2) Thanks Brain, i was missing the string bit. the code i posted (opps) was not exactly where i was having problems, it just looked like it. also thanks for the 'in' test, that will come in handy. i am using chain because i need to do something differ

Re: try / except not worknig correctly

2005-03-12 Thread Pete
'@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote: 1) the tutor list is really slow. but thanks. 2) Thanks Brain, i was missing the string bit. the code i posted (opps) was not exactly where i was having problems, it just looked like it. also thanks for the 'in' test, that will com

Re: try / except not worknig correctly

2005-04-01 Thread Jeremy Bowers
On Sat, 12 Mar 2005 17:06:17 -0800, '@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote: I'd also suggest validInput = "ABCDEFGHIJKL" # and there are more clever ways to do this, # but this will do myInput = raw_input(" ".join(validInput) + "?") if len(