A quick lightweight psuedo-installation of a subset of Stackless Python functionality.
Installing Stackless Python is a little cumbersome. Wouldn’t it be easier to install something resembling Stackless Python that upgrades your standard Python installation, with all it’s installed site packages available as before?
This module bungs a greenlet-based module named stackless.py in place, so that anything expecting Stackless Python, will find this small approximation of Stackless Python instead. Whatever you are trying that requires Stackless Python may even work? May be not though.
Limitations of this module:
- Arguments to stackless.run() are not supported. This means that it does not do pre-emptive interruption of tasklets that have been running for a given number of opcodes.
- It cannot provide the module level properties that the official stackless module provides, like stackless.runcount.
- It does not emulate the threading support, where each thread has an isolated scheduler, nor the interthread communications of tasklets and channels.
But the basic non-preemptive functionality is there. It comes from, and has been used in the past as an alternative backend to the syncless framework. And maybe, at some time in the future the module will become more capable with your help?
Future direction: Use tealets as an alternative backend.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size stacklessemu-0.1-py2-none-any.whl (8.2 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View hashes|
|Filename, size stacklessemu-0.1.zip (9.5 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for stacklessemu-0.1-py2-none-any.whl