Skip to main content

This project is a branch of greenlet on QPython.

Greenlets are lightweight coroutines for in-process concurrent programming.

The “greenlet” package is a spin-off of Stackless, a version of CPython that supports micro-threads called “tasklets”. Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on “channels”.

A “greenlet”, on the other hand, is a still more primitive notion of micro-thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python’s own generators is that our generators can call nested functions and the nested functions can yield values too. (Additionally, you don’t need a “yield” keyword. See the example in test_generator.py).

Greenlets are provided as a C extension module for the regular unmodified interpreter.

Metadata

Release files for greenlet-qpython 3.1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for greenlet-qpython 3.1.1.4
File Size Uploaded
greenlet_qpython-3.1.1.4.tar.gz 308.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for greenlet-qpython 3.1.1.4
File Interpreter ABI Platform
greenlet_qpython-3.1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 646.7 kB

Release files / greenlet_qpython-3.1.1.4.tar.gz

Download URL greenlet_qpython-3.1.1.4.tar.gz
Size 308.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a28934afeec0f3fe95b61b6c224290673c133574a386ac9f279f9cc52e7e670b
BLAKE2b-256 checksum
How to use checksums
3062bf76ad9257a13b398663112c9e15960c5e7b74200cf374238692b9c4c3b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / greenlet_qpython-3.1.1.4-py3-none-any.whl

Download URL greenlet_qpython-3.1.1.4-py3-none-any.whl
Size 337.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02a604e824a5af20263b8be670f2e0c03af8a40e288e0257011461d52da1ec25
BLAKE2b-256 checksum
How to use checksums
3f62ab39db8049071a67c4c0ffb034f22befa79f3408c09a3d03e534f9bb773b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

3.1.1.4 This release

2 release files

3.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page