Message124848
| Author |
pitrou |
| Recipients |
draghuram, eric.araujo, ethan.furman, mrabarnett, ncoghlan, pitrou, poke, rhettinger, steven.daprano |
| Date |
2010年12月29日.10:40:06 |
| SpamBayes Score |
1.4944735e-06 |
| Marked as misclassified |
No |
| Message-id |
<1293619203.3709.0.camel@localhost.localdomain> |
| In-reply-to |
<1293585326.55.0.268905833222.issue6210@psf.upfronthosting.co.za> |
| Content |
Le mercredi 29 décembre 2010 à 01:15 +0000, Ethan Furman a écrit :
> Ethan Furman <ethan@stoneleaf.us> added the comment:
>
> > I'm talking about the exception raised from the except block.
>
> So was I -- why should this:
>
> try:
> x = y / z
> except ZeroDivisionError as exc:
> raise InvalidInput()
>
> be different from this:
>
> try:
> x = divide_and_conquer(y, z)
I said the *except* block, not the *try* block ;) |
|