Exception Handling in Python 3
Steve Holden
steve at holdenweb.com
Mon Oct 25 03:17:07 EDT 2010
On 10/25/2010 2:57 AM, Martin v. Loewis wrote:
> Am 24.10.2010 23:48, schrieb Steve Holden:
>> On 10/24/2010 4:44 PM, John Nagle wrote:
>>> Are exception semantics changing in a way which would affect
>>> that?
>>
>> No, I don't believe so. I simply felt that the traceback gives too
>> much information in the case where an exception is specifically
>> being raised to replace the one currently being handled.
>
> I think you have puzzled readers a lot (including me) with the
> statement:
>
> "that Python 3 no longer allows an exception to be raised in an
> except clause"
>
> That certainly isn't the case.
>
Of course it isn't. I believe the only readers puzzled by my assertion
would be those who did not read the parenthesized comment immediately
following the sentence you quoted, which read:
> (or rather that it reports it as a separate exception that occurred
> during the handling of the first)
I understand that this behavior is deliberate. I just don't feel that it
is universally helpful.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon 2011 Atlanta March 9-17 http://us.pycon.org/
See Python Video! http://python.mirocommunity.org/
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list
mailing list