[Python-Dev] exception chaining (original) (raw)
Benjamin Peterson benjamin at python.org
Fri Jan 20 23:45:08 CET 2012
- Previous message: [Python-Dev] exception chaining
- Next message: [Python-Dev] exception chaining
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] exception chaining
- Next message: [Python-Dev] exception chaining
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]