py313-greenlet (python/py-greenlet) Updated: 2 months, 3 weeks ago Add to my watchlist
Lightweight in-process concurrent programmingThe "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.
Version: 3.1.1 License: MIT and PSF GitHub21 build(s) found
Builder | Build Number | Start Time | Elapsed Time | Watcher | Build Status |
---|---|---|---|---|---|
10.11 | 280769 | 2024-11-12 23:50:11 | 0:02:45 | 92484 | build successful |
10.10 | 287220 | 2024-11-12 20:39:41 | 0:02:31 | 92323 | build successful |
13 | 81529 | 2024-11-08 12:39:47 | 0:00:10 | 27336 | build successful |
14 | 51117 | 2024-11-08 7:08:29 | 0:00:10 | 15542 | build successful |
12.arm64 | 140614 | 2024-11-07 9:41:27 | 0:00:17 | 41486 | build successful |
13.arm64 | 74222 | 2024-11-07 8:02:01 | 0:00:17 | 27087 | build successful |
10.6 | 185189 | 2024-11-07 5:55:03 | 0:02:28 | 64794 | build successful |
10.6.x86_64 | 220924 | 2024-11-07 5:52:11 | 0:02:06 | 64844 | build successful |
10.11 | 280078 | 2024-11-07 5:51:07 | 0:05:41 | 92244 | failed install-port |
10.12 | 289824 | 2024-11-07 5:50:03 | 0:01:16 | 90995 | build successful |
10.10 | 286404 | 2024-11-07 5:49:32 | 0:04:23 | 92080 | failed install-port |
10.9 | 293896 | 2024-11-07 5:49:01 | 0:02:53 | 91753 | build successful |
10.7 | 208111 | 2024-11-07 5:48:37 | 0:02:32 | 64506 | build successful |
10.8 | 194147 | 2024-11-07 5:48:14 | 0:02:34 | 62547 | build successful |
10.13 | 248360 | 2024-11-07 5:47:44 | 0:00:16 | 83059 | build successful |
11 | 170818 | 2024-11-07 5:47:23 | 0:00:28 | 52716 | build successful |
10.15 | 199523 | 2024-11-07 5:47:00 | 0:00:24 | 62771 | build successful |
10.14 | 222452 | 2024-11-07 5:46:32 | 0:00:17 | 73707 | build successful |
12 | 122127 | 2024-11-07 5:46:09 | 0:00:19 | 41600 | build successful |
15 | 19756 | 2024-11-07 5:45:42 | 0:00:11 | 2994 | build successful |
14.arm64 | 45919 | 2024-11-07 5:45:24 | 0:00:20 | 15177 | build successful |