Issue 31708: Allow use of asynchronous generator expressions in synchronous functions (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/75889

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:53 admin set github: 75889
2017-10-06 06:58:58 yselivanov set status: open -> closedresolution: fixedstage: patch review -> resolved
2017-10-06 06:58:30 yselivanov set messages: +
2017-10-06 06:27:23 yselivanov set nosy: + ncoghlan
2017-10-06 06:26:15 yselivanov set messages: +
2017-10-06 06:14:22 yselivanov set keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest3876>
2017-10-06 04:25:37 yselivanov set dependencies: + Drop support for asynchronous __aiter__messages: +
2017-10-06 04:23:32 yselivanov create