[Python-Dev] exception chaining

Benjamin Peterson benjamin at python.org
Fri Jan 20 23:45:08 CET 2012


2012/1/20 Terry Reedy <tjreedy at udel.edu>:
> Since 'raise' means 're-raise the current error', 'raise as OtherError'
> means (clearly to me, anyway) 're-raise the current error as OtherError'.

That doesn't make any sense. You're changing the exception completely
not reraising it.

-- 
Regards,
Benjamin


More information about the Python-Dev mailing list