Re: simple try/except question

2007-10-29 Thread Alan Isaac
Gabriel Genellina wrote: > Perhaps you reassigned TypeError? Yes, that was it. Sheesh. Thanks! Alan -- http://mail.python.org/mailman/listinfo/python-list

Re: simple try/except question

2007-10-29 Thread Alan Isaac
False alarm. Fresh start of interpreter and all is well. Apologies. Still tracking. Alan -- http://mail.python.org/mailman/listinfo/python-list

Re: simple try/except question

2007-10-29 Thread Alan Isaac
Tim Chase wrote: > It works for me(tm)... > Python 2.4.3 Sorry to have left out that detail. Yes, it works for me in Python 2.4, but not in 2.5.1. The code I posted was copyied from the interpreter. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: simple try/except question

2007-10-29 Thread Gabriel Genellina
On 29 oct, 12:46, Alan Isaac <[EMAIL PROTECTED]> wrote: > Is the behavior below expected? > If so, why is the exception not caught? > Thanks, > Alan Isaac > > >>> x,y='','' > >>> try: x/y > > ... except TypeError: print 'oops' > ... > Traceback (most recent call last): > File "", line 1, in > T

Re: simple try/except question

2007-10-29 Thread Tim Chase
> Is the behavior below expected? > If so, why is the exception not caught? > Thanks, > Alan Isaac > x,y='','' try: x/y > ... except TypeError: print 'oops' > ... > Traceback (most recent call last): > File "", line 1, in > TypeError: unsupported operand type(s) for /: 'str' and 'str'

simple try/except question

2007-10-29 Thread Alan Isaac
Is the behavior below expected? If so, why is the exception not caught? Thanks, Alan Isaac >>> x,y='','' >>> try: x/y ... except TypeError: print 'oops' ... Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for /: 'str' and 'str' -- http://mail.pytho