[Python-Dev] setjmp/longjmp exception handling

Brett C. bac at OCF.Berkeley.EDU
Thu Oct 23 20:26:34 EDT 2003

Martin v. Löwis wrote:
> "Brett C." <bac at OCF.Berkeley.EDU> writes:
>>The basic idea is to keep a stack of jmp_buf points.
> This is an old implementation strategy for exceptions in C++; e.g. GNU
> g++ uses it with -fsjlj-exception option. It is generally discouraged
> as it is *really* expensive: it requires a lot of memory per jmpbuf,
> and it requires that the memory is filled.

Figures.  Oh well.  At least it was interesting to figure out.

More information about the Python-Dev mailing list