Stackless Python and Python 2.x

Courageous jkraska at san.rr.com
Sun Sep 2 15:00:53 EDT 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.

C//




More information about the Python-list mailing list