Modify an exception before re-raising it

Terry Reedy tjreedy at
Fri Mar 6 19:03:07 CET 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