En Fri, 09 Mar 2007 05:52:35 -0300, Duncan Booth  
<[EMAIL PROTECTED]> escribió:

> "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>
>> Not the *previous* exception, but the *current* one. You must be
>> inside an  "except" clause to use a bare raise.
>>
> No, you don't have to be inside an except clause to use a bare raise.
> A bare 'raise' will re-raise the last exception that was active in the
> current scope. That applies even outside the except clauses just so long
> as there has been an exception within the same function:

Oh! Thanks, I didn't know that.
I tested it in the interpreter, outside any function, and the exception  
info was lost immediately, so I wrongly concluded that it lived shortly.

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to