[issue31491] Add is_closing() to asyncio.StreamWriter.

2018-05-29 Thread Yury Selivanov


Yury Selivanov  added the comment:

Done in 32391.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
superseder:  -> Add StreamWriter.wait_closed()

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31491] Add is_closing() to asyncio.StreamWriter.

2017-12-20 Thread Yury Selivanov

Yury Selivanov  added the comment:

OK.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31491] Add is_closing() to asyncio.StreamWriter.

2017-12-20 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

Makes sense.

--
assignee:  -> asvetlov
nosy: +asvetlov

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31491] Add is_closing() to asyncio.StreamWriter.

2017-09-16 Thread Aymeric Augustin

New submission from Aymeric Augustin:

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 https://github.com/python/asyncio/pull/291.

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

I'm only suggesting to add it for consistency.

--
components: asyncio
messages: 302335
nosy: aymeric.augustin, yselivanov
priority: normal
severity: normal
status: open
title: Add is_closing() to asyncio.StreamWriter.
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com