[Stackless] A question about exceptions

stacklesspython at dfackrell.mailshell.com stacklesspython at dfackrell.mailshell.com
Fri Nov 24 17:25:36 CET 2006


The state and frame are kept around for the handler.  Having the frame around allows you to use Python's incredible introspection ability to analyze the variables, call path, and so on.  Hope this helps.

Daniel Fackrell

>From Kristján V. Jónsson <kristjan at ccpgames.com> on 24 Nov 2006:

> Here is a quick question for you, before I make a fool of my self on
> the more mainstream Python lists..
> Why is the exception state kept around with a frame after it is
> handled?=
>   Hence the need for sys.exc_clear()
> Is this an implementation issue or a language design feature?
> Cheers,
> Kristján

The FREE service that prevents junk email http://www.mailshell.com

-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list