I’m trying to map out what’s already been done with algebraic effects / effect handlers in Python, and I’d love pointers from people who know the space.
I’m aware generators (yield / send) and context managers can approximate one-shot, shallow handlers, but I’m more interested in fuller or more principled attempts — libraries, research experiments, or write-ups.
A few things I’m specifically curious about:
libraries that implement effects as a first-class abstraction
anything that tackles multi-shot continuations (greenlets? CPS transforms?)
how these compare to handlers in Koka / Eff / OCaml
Pointers, war stories, or “don’t bother, here’s why” all welcome.
Most likely, some of the concepts you’re looking for are hard to even define (at least in a meaningful way) for Python, because the language is fundamentally so different from ones designed to focus purely on the functional paradigm.