Comparison with False - something I don't understand

Paul Rubin no.email at nospam.invalid
Thu Dec 2 13:33:40 EST 2010


Tim Harig <usernet at ilthio.net> writes:
>> That's called longjmp.
>
> The problem is that you might have partially allocated data structures
> that you need to free before you can go anywhere.

Alloca can help with that since the stack stuff gets released by the
longjmp.  Alternatively you can have an auxiliary stack of cleanup
records that the longjmp handler walks through.  Of course if you do
that, you're halfway towards reinventing exceptions.



More information about the Python-list mailing list