[Python-Dev] Twisted Isn't Specific (was Re: Trial balloon: microthreads library in stdlib)

Thomas Wouters thomas at python.org
Thu Feb 15 04:27:04 CET 2007


On 2/14/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

> I know that will be hard to do, but it's the only
> way out of this mess that I can see.


That depends on what you consider messy about it. *I* don't like the idea of
something in the Python installation deciding which reactor to use. It's my
application, and I'm damn well going to tell it what to do. If that means it
doesn't work as I expected, it's my own fault :-)

In any case, your idea requires a lot of changes in external, non-Python
code -- PyGTK simply exposes the GTK mainloop, which couldn't care less
about Python's idea of a perfect event reactor model. While those issues are
being settled, we'll have to cope with selecting the right reactor manually.
It's not all that different from what you want, in any case. The
PerfectReactor can be added later, all current reactors aliased to it, and
no one would have to change a single line of code.

-- 
Thomas Wouters <thomas at python.org>

Hi! I'm a .signature virus! copy me into your .signature file to help me
spread!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20070214/994b34ae/attachment.htm 


More information about the Python-Dev mailing list