You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-06-28.01:11:31.754>created_at=<Date2016-02-17.11:30:21.910>labels= ['type-feature', 'expert-asyncio']
title='asyncio: add support for async context manager on streams?'updated_at=<Date2017-06-28.01:11:31.752>user='https://github.com/vstinner'
While working on the issue bpo-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.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: