classification
Title: Forbid creating of stream objects outside of asyncio
Type: Stage: resolved
Components: asyncio Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, yselivanov
Priority: normal Keywords: patch

Created on 2019-05-05 19:15 by asvetlov, last changed 2019-05-07 02:54 by asvetlov. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13101 merged asvetlov, 2019-05-05 20:16
Messages (1)
msg341472 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2019-05-05 19:15
They were intended to be used by asyncio factories like open_connection from the very beginning but internals was leaked into asyncio top-level namespace.

The idea is: 
1. provide `_asyncio_internal` keyword-only parameter to leaked classes constructor 
2. have it False by default
3. Use `_asyncio_internal=True` when called from asyncio code.
3. Raise DeprecationWarning if `_asyncio_internal` is False
History
Date User Action Args
2019-05-07 02:54:08asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-05 20:16:23asvetlovsetkeywords: + patch
stage: patch review
pull_requests: + pull_request13014
2019-05-05 19:15:37asvetlovcreate