Author aymeric.augustin
Recipients aymeric.augustin, yselivanov
Date 2017-09-16.11:48:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
asyncio.StreamWriter wraps a transport. The first three document methods of asyncio.BaseTransport are close(), is_closing() and get_extra_info().

It is somewhat surprising that StreamWriter provides close() and get_extra_info() but not is_closing(). I'm proposing that StreamWriter implement is_closing() as well.

It's as simple as:

    def is_closing(self):
        return self._transport.is_closing()

Perhaps it was simply missed in

It's trivial to work around this omission with stream_writer.transport.is_closing().

I'm only suggesting to add it for consistency.
Date User Action Args
2017-09-16 11:48:32aymeric.augustinsetrecipients: + aymeric.augustin, yselivanov
2017-09-16 11:48:32aymeric.augustinsetmessageid: <>
2017-09-16 11:48:32aymeric.augustinlinkissue31491 messages
2017-09-16 11:48:31aymeric.augustincreate