Does anyone know of an event loop library (or bindings) available for Python 3? It's okay if it only does UNIX systems, though I would prefer something that does Windows as well.
ETA: I realize that it is not terribly difficult to write an event loop system. However, I don't want to reinvent the wheel (we are still encouraging not doing so these days, right? ;-))
This is planned for a server application, so obviously I'd want something that isn't tied to a GUI widget toolkit or something.
If the answer is "Nope, there isn't one" (probably; I sure as heck can't find one) then I will most likely create a binding for Python 3 for libev.
while True:loop will be high performance. You can't get much higher, really. It only gets complicated if you want anything else, such as multithreading, or dispatching events over networks, etc, etc. Also you may have the desire to hook in system events, in which case you need support for that, and that's not trivial. For just a "High performance event loop" all you need is awhile True:.while True:and setting up a select is fine, for very simple things, but even doing that in Python directly is going to be slower than using libev, which has Python 3.2 bindings (see below), because Python does a lot of "hidden magic" when you callselect, for example.