[Python-ideas] asyncore: included batteries don't fit
Floris Bruynooghe
flub at devork.be
Mon Oct 8 13:10:05 CEST 2012
On 8 October 2012 03:49, Guido van Rossum <guido at python.org> wrote:
> My current goal is to see if it would be possible to come up with an
> abstraction that makes it possible to write protocol handlers that are
> independent from the rest of the infrastructure (e.g. transport,
> reactor).
This would be my ideal situation too and I think this is what PEP 3153
was trying to achieve. While I am an greenlet (eventlet) user I agree
with the sentiment that it is not ideal to include it into the stdlib
itself and instead work to a solution where we can share protocol
implementations while having the freedom to run on a twisted reactor,
tornado, something greenlet based or something in the stdlib depending
on the preference of the developer.
FWIW I have implemented the AgentX protocol based on PEP-3153 and it
isn't complete yet (I had to go outside of what it defines). It is
also rather heavy handed and I'm not sure how one could migrate the
stdlib to something like this. So hopefully there are better
solutions possible.
Regards,
Floris
More information about the Python-ideas
mailing list