Stackless Python and Python 2.x

Courageous jkraska at
Sun Sep 2 21:00:53 CEST 2001

>and chapter 2 shows in excruciatingly detail how to implement CLU iterators
>(also semi-coroutines) using almost-standard C, abusing the C stack via
>setjmp/longjmp tricks.

Sure; however, if you proposed something like this in either the C or C++
newsgroups, you'd get your heard torn off. It's simply not portable. The
standard doesn't require that you be allowed to jump up the stack.


More information about the Python-list mailing list