Issue 26373: asyncio: add support for async context manager on streams? (original) (raw)
Issue26373
Created on 2016-02-17 11:30 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Messages (4) | ||
|---|---|---|
| msg260394 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2016-02-17 11:30 |
| While working on the issue #24911 (Context manager of socket.socket is not documented), I recalled that asyncio objects don't support context manager. With the PEP 492, it becomes possible to add support for async context manager for a few asyncio objects. I suggest to start with StreamWriter. Usually, my rationale to decide which object should implement context manager is to check if the destructor can emit ResourceWarning. In asyncio, ResourceWarning is now emitted by transport and event loop destructors: https://docs.python.org/dev/library/asyncio-dev.html#close-transports-and-event-loops | ||
| msg267201 - (view) | Author: Roundup Robot (python-dev) ![]() |
Date: 2016-06-04 00:34 |
| New changeset 883cfb3e28f9 by Gregory P. Smith in branch '3.5': Fixes Issue #26373: subprocess.Popen.communicate now correctly ignores https://hg.python.org/cpython/rev/883cfb3e28f9 New changeset 78e81de6d447 by Gregory P. Smith in branch 'default': merge from 3.5 - Fixes Issue #26373: subprocess.Popen.communicate https://hg.python.org/cpython/rev/78e81de6d447 | ||
| msg267243 - (view) | Author: Martin Panter (martin.panter) * ![]() |
Date: 2016-06-04 08:04 |
| Above two commits were actuall for Issue 26372 | ||
| msg297105 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2017-06-28 01:11 |
| I'm not sure asynico anymore and lost track of this issue, so I just close it. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:27 | admin | set | github: 70561 |
| 2017-06-28 01:11:31 | vstinner | set | status: open -> closedresolution: out of datemessages: + stage: resolved |
| 2016-06-04 08:04:21 | martin.panter | set | nosy: + martin.pantermessages: + |
| 2016-06-04 00:34:31 | python-dev | set | nosy: + python-devmessages: + |
| 2016-02-17 11:30:21 | vstinner | create |

