Re: very newbie question about exception handling

2007-12-26 Thread James Matthews
In short input runs an eval on the text before it passes it! So input like ord('a') will work fine because it will run that code! On Dec 26, 2007 5:26 AM, <[EMAIL PROTECTED]> wrote: > Thanks guys! It worked. > > Merry Christmas! > -- > http://mail.python.org/mailman/listinfo/python-list > --

Re: very newbie question about exception handling

2007-12-25 Thread Louis . Soninhu
Thanks guys! It worked. Merry Christmas! -- http://mail.python.org/mailman/listinfo/python-list

Re: very newbie question about exception handling

2007-12-24 Thread Ricardo Aráoz
[EMAIL PROTECTED] wrote: > code sample: > -- > i=input() > try: > x=int(i) > print "you input an integer" > except ValueError: > print "you must input an integer" > > when I input a value like,

very newbie question about exception handling

2007-12-24 Thread Louis . Soninhu
code sample: -- i=input() try: x=int(i) print "you input an integer" except ValueError: print "you must input an integer" when I input a value like, b I got the traceback message instead of prop