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: Coroutines & async generators disagree on the iteration protocol semantics
Type: behavior Stage: needs patch
Components: Interpreter Core Versions: Python 3.11, Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, lukasz.langa, pablogsal, yselivanov
Priority: normal Keywords:

Created on 2021-09-02 20:32 by yselivanov, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg400951 - (view) Author: Yury Selivanov (yselivanov) * (Python committer) Date: 2021-09-02 20:32
See this script:

  https://gist.github.com/1st1/eccc32991dc2798f3fa0b4050ae2461d

Somehow an identity async function alters the behavior of manual iteration though the wrapped nested generator.

This is a very subtle bug and I'm not even sure if this is a bug or not. Opening the issue so that I don't forget about this and debug sometime later.
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89251
2021-09-03 03:26:08yselivanovsetnosy: + gvanrossum
2021-09-02 20:32:30yselivanovcreate