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.

classification
Title: Allow use of asynchronous generator expressions in synchronous functions
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: 31709 Superseder:
Assigned To: yselivanov Nosy List: ncoghlan, yselivanov
Priority: normal Keywords: patch

Created on 2017-10-06 04:23 by yselivanov, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 3905 merged yselivanov, 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 per PEP 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 changeset b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd by Yury Selivanov in branch 'master':
bpo-31708: Allow async generator expressions in synchronous functions (#3905)
https://github.com/python/cpython/commit/b8ab9d3fc816f85f4d6dbef12b7414e6dc10e4dd
History
Date User Action Args
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