This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients draghuram, ethan.furman, mrabarnett, ncoghlan, pitrou, poke, rhettinger, steven.daprano
Date 2010-12-29.01:15:24
SpamBayes Score 3.6898e-07
Marked as misclassified No
Message-id <>
> I'm talking about the exception raised from the except block.

So was I -- why should this:

    x = y / z
except ZeroDivisionError as exc:
    raise InvalidInput()

be different from this:

    x = divide_and_conquer(y, z)
except ZeroDivisionError as exc:
    raise InvalidInput()


In both cases I want to discard the previous exception, and raise my own in its place (without the nesting, in this example).
Date User Action Args
2010-12-29 01:15:26ethan.furmansetrecipients: + ethan.furman, rhettinger, ncoghlan, pitrou, draghuram, mrabarnett, steven.daprano, poke
2010-12-29 01:15:26ethan.furmansetmessageid: <>
2010-12-29 01:15:24ethan.furmanlinkissue6210 messages
2010-12-29 01:15:24ethan.furmancreate