[issue41912] Long generator chain causes segmentation fault

Tim Peters report at bugs.python.org
Sun Oct 4 22:01:18 EDT 2020


Tim Peters <tim at python.org> added the comment:

"Stackless" is a large topic with a convoluted history. Do the web search. In short, no, it will never go in the core - too disruptive to too many things. Parts have lived on in other ways, watered down versions. The PyPy project captured most of what remains, as optional features. CPython's generators captured the easiest part: after a yield, the C stack space the generator consumed is released, while the Python VM stack space lives on in the heap awaiting possible resumption (but, if/when it's resumed, C stack space is required again).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41912>
_______________________________________


More information about the Python-bugs-list mailing list