Antoine Pitrou <[EMAIL PROTECTED]> added the comment:

Just found another funny example. This one fails also before r62847.

def except_yield():
    try:
        raise Exception("foo")
    except:
        yield 1
        raise
list(except_yield())

In Py3k (with or without r62487), we get "RuntimeError: No active
exception to reraise".
In Python 2.5, we get "TypeError: exceptions must be classes, instances,
or strings (deprecated), not NoneType".

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2833>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to