Stackless Python

from Wikipedia, the free encyclopedia
Stackless Python
Basic data

Maintainer Christian Tismer
developer Anselm Kruis
Current  version 3.7.5-slp
( October 20, 2019 )
operating system platform independent
programming language C , python
License Python Software Foundation License

Stackless Python, or Stackless for short, is an experimental implementation of the Python programming language .

Stackless uses when executing the byte codes in its virtual machine is not the C - call stack to save for subroutine calls (methods, functions, procedures) the return addresses and local variables, but uses its own stack. This enables a complete change of context (e.g. for concurrency , generators, coroutines ). This means that the depth of recursion is only limited by the main memory , but not by the size of the processor stack.

These advantages come at the price of a more complicated, less intuitive and less powerful implementation of the virtual machine. In addition, the differences between the standard interpreter CPython and Stackless are quite clear, so it is not possible to run Stackless as a CPython extension. Instead, Stackless completely replaces the Python installation.

See also

Web links

  1. .