[Python-ideas] Tulip / PEP 3156 - subprocess events

Nick Coghlan ncoghlan at gmail.com
Mon Jan 21 08:52:38 CET 2013


On Mon, Jan 21, 2013 at 5:03 AM, Guido van Rossum <guido at python.org> wrote:
> Anyway, I
> think Nick is okay with the separation between the protocol_factory()
> call and the connection_made() call, as long as the future returned by
> create_connection() isn't marked done until the connection_made() call
> returns. That's an easy fix in the current Tulip code. It's a little
> harder though to fix up the PEP to clarify all this...

Right, I understand what the separate method enables now. I think one
way to make it clearer in the PEP is to require that "connection_made"
return a Future or coroutine, rather than being an ordinary method
returning None.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia



More information about the Python-ideas mailing list