Modify an exception before re-raising it

Terry Reedy tjreedy at udel.edu
Fri Mar 6 13:03:07 EST 2009


Steven D'Aprano wrote:

> Okay, if other people are doing it, I'm happy to rely on it as something
> which shouldn't just go away without warning.

At least, it will not go away without fuss.

I would guess that modifying the message is an intended use of bare 
'raise', but that is not documented.




More information about the Python-list mailing list