greenlets and how they can be used

James Mills prologic at shortcircuit.net.au
Sun Jan 4 18:03:49 EST 2009


On Sun, Jan 4, 2009 at 4:52 AM, Benjamin Walkenhorst <krylon at gmx.net> wrote:
> Back when I was still using Perl, there was - and still is, I guess - a really nice framework called POE, that allowed you to write event-driven state machines in a really easy and pleasant way. Under POE, EVERYTHING was an event. When writing a network server, each incoming client connection was an event, within a connection, each incoming piece of data was an event; when reading a file, each line fired an event (i.e. I/O was completely asynchronous); when querying a database, each result row would fire an event. What was even better, you could very easily plug GTK's or Tk's event loop into the whole mix and have GUI interactions fire events, too.
> POE was one of the nicest software frameworks I have ever used, and I've been continuously frustrated by the lack of something like it in other languages such as Python or Ruby.

It does exist :) It's called circuits.
Or at least circuits is a framework that I develop
and build which sounds very similar to POE in
some ways :)

cheers
James



More information about the Python-list mailing list