Gabriel Genellina wrote:
> Perhaps you reassigned TypeError?
Yes, that was it.
Sheesh.
Thanks!
Alan
--
http://mail.python.org/mailman/listinfo/python-list
False alarm.
Fresh start of interpreter and all is well.
Apologies.
Still tracking.
Alan
--
http://mail.python.org/mailman/listinfo/python-list
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
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
> 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'
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