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

Antoine Pitrou solipsis at pitrou.net
Sun Jan 20 13:36:54 CET 2013


On Sat, 19 Jan 2013 20:35:04 -0800
Guido van Rossum <guido at python.org> wrote:
> IOW, even though a transport may "have" a protocol without a
> connection, nobody should care about that state, and nobody should be
> calling its methods (again, write() etc.) in that state. In fact,
> nobody except event loop internal code should ever have a reference to
> a transport in that state.

This is just not true. When the connection breaks, the protocol still
has a reference to the transport and may still be trying to do things
with the transport (because connection_lost() has not been called yet).

Regards

Antoine.





More information about the Python-ideas mailing list