This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Forbid creating of stream objects outside of asyncio
Type: Stage: resolved
Components: asyncio Versions: Python 3.8
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 2022-04-11 14:59 by admin. 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
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 80987
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