Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue31708

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:Allow use of asynchronous generator expressions in synchronous functions
Type:behaviorStage:resolved
Components:Interpreter CoreVersions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:31709Superseder:
Assigned To: yselivanovNosy List: ncoghlan, yselivanov
Priority:normalKeywords:patch

Created on2017-10-06 04:23 byyselivanov, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 3905mergedyselivanov,2017-10-06 06:14
Messages (3)
msg303797 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2017-10-06 04:25
Prior to Python 3.7 we couldn't enable use of asynchronous generator expressions in synchronous functions:    async arange(n):        for i in range(n):            yield i    def make_arange(n):        return (i async for i in arange(n))
msg303803 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2017-10-06 06:26
(this is perPEP 530:https://www.python.org/dev/peps/pep-0530/#asynchronous-comprehensions)
msg303805 -(view)Author: Yury Selivanov (yselivanov)*(Python committer)Date: 2017-10-06 06:58
New changesetb8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd by Yury Selivanov in branch 'master':bpo-31708: Allow async generator expressions in synchronous functions (#3905)https://github.com/python/cpython/commit/b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd
History
DateUserActionArgs
2022-04-11 14:58:53adminsetgithub: 75889
2017-10-06 06:58:58yselivanovsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-10-06 06:58:30yselivanovsetmessages: +msg303805
2017-10-06 06:27:23yselivanovsetnosy: +ncoghlan
2017-10-06 06:26:15yselivanovsetmessages: +msg303803
2017-10-06 06:14:22yselivanovsetkeywords: +patch
stage: patch review
pull_requests: +pull_request3876
2017-10-06 04:25:37yselivanovsetdependencies: +Drop support for asynchronous __aiter__
messages: +msg303797
2017-10-06 04:23:32yselivanovcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp