[New-bugs-announce] [issue45088] Coroutines & async generators disagree on the iteration protocol semantics

Yury Selivanov report at bugs.python.org
Thu Sep 2 16:32:30 EDT 2021


New submission from Yury Selivanov <yselivanov at gmail.com>:

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.

----------
components: Interpreter Core
messages: 400951
nosy: lukasz.langa, pablogsal, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: Coroutines & async generators disagree on the iteration protocol semantics
type: behavior
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45088>
_______________________________________


More information about the New-bugs-announce mailing list