[Python-ideas] Tulip / PEP 3156 - subprocess events
Guido van Rossum
guido at python.org
Fri Jan 18 22:24:15 CET 2013
On Fri, Jan 18, 2013 at 12:08 AM, Paul Moore <p.f.moore at gmail.com> wrote:
> On 18 January 2013 05:08, Guido van Rossum <guido at python.org> wrote:
>>> That still doesn't spell out that it's about the internet
>>> in particular. Or is the assumption that internet connections
>>> are the only kind that matter these days?
>>>> Basically yes, in this context. The same assumption underlies
>> socket.getaddrinfo() in the stdlib. If you have a CORBA system lying
>> around and you want to support it, you're welcome to create the
>> transport connection function create_corba_connection(). :-)
>> To create that create_corba_connection() function, you'd be expected
> to subclass the standard event loop, is that right?
No, it doesn't need to be a method on the event loop at all. It can
just be a function in a different package; it can use
events.get_current_event_loop() to reference the event loop.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas
mailing list