Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue36921

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Deprecate yield from and @coroutine in asyncio
Type:Stage:resolved
Components:asyncioVersions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: asvetlov, josh.r, miss-islington, njs, yselivanov
Priority:normalKeywords:patch

Created on2019-05-15 08:32 byasvetlov, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 13334closedasvetlov,2019-05-15 08:34
PR 13346mergedasvetlov,2019-05-15 18:36
Messages (3)
msg342649 -(view)Author: miss-islington (miss-islington)Date: 2019-05-16 14:52
New changeset68b34a720485f399e8699235b8f4e08f227dd43b by Miss Islington (bot) (Andrew Svetlov) in branch 'master':bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)https://github.com/python/cpython/commit/68b34a720485f399e8699235b8f4e08f227dd43b
msg372177 -(view)Author: Josh Rosenberg (josh.r)*(Python triager)Date: 2020-06-23 15:21
Was this supposed to deprecate using types.coroutine as a decorator as well? Because that's not clearly documented, which means people can still use it to make generator-based coroutines without async def.
msg391987 -(view)Author: Nathaniel Smith (njs)*(Python committer)Date: 2021-04-26 21:17
@types.coroutine is still useful as a tool for writing "foundation" coroutines that directly interact with the coroutine runner, e.g.:https://github.com/python-trio/trio/blob/94562c54d241859eb05ed85c88fd6073d6752ff6/trio/_core/_traps.py#L12-L21https://github.com/dabeaz/curio/blob/27ccf4d130dd8c048e28bd15a22015bce3f55d53/curio/traps.py#L28-L36So I think it's only @asyncio.coroutine that should be deprecated.
History
DateUserActionArgs
2022-04-11 14:59:15adminsetgithub: 81102
2021-04-26 21:17:39njssetnosy: +njs
messages: +msg391987
2020-06-23 15:21:14josh.rsetnosy: +josh.r
messages: +msg372177
2019-05-24 14:17:40asvetlovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-16 14:52:18miss-islingtonsetnosy: +miss-islington
messages: +msg342649
2019-05-15 18:36:59asvetlovsetpull_requests: +pull_request13257
2019-05-15 08:34:40asvetlovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request13246
2019-05-15 08:32:31asvetlovcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp