# -*- coding: ascii; tab-width: 4 -*- Info2: << Package: greenlet-py%type_pkg[python] Version: 1.1.2 Revision: 1 Distribution: << (%type_pkg[python] = 36 ) 10.9, (%type_pkg[python] = 36 ) 10.10, (%type_pkg[python] = 36 ) 10.11, (%type_pkg[python] = 36 ) 10.12, (%type_pkg[python] = 36 ) 10.13, (%type_pkg[python] = 36 ) 10.14, (%type_pkg[python] = 36 ) 10.14.5, (%type_pkg[python] = 36 ) 10.15 << Type: python (3.6 3.7 3.8 3.9 3.10) Description: Lightweight in-process concurrent programming DescDetail: << 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 tests/test_generator.py. << Maintainer: Daniel Johnson License: BSD Homepage: https://pypi.org/project/greenlet/ Source: https://files.pythonhosted.org/packages/source/g/greenlet/greenlet-%v.tar.gz Source-Checksum: SHA256(e30f5ea4ae2346e62cedde8794a56858a67b878dd79f7df76a0767e356b1744a) Depends: python%type_pkg[python] BuildDepends: setuptools-tng-py%type_pkg[python] CompileScript: %p/bin/python%type_raw[python] setup.py build InfoTest: << TestScript: << PYTHONPATH=$(ls -d %b/build/lib.macosx-*-%type_raw[python]) GREENLET_TEST_CPP=1 %p/bin/python%type_raw[python] -B -m unittest discover -v greenlet.tests || exit 2 << << InstallScript: %p/bin/python%type_raw[python] setup.py install --root=%d DocFiles: benchmarks docs/greenlet.rst AUTHORS LICENSE* README.rst <<