Message318853
```
@asynccontextmanager
async def ctx():
yield
async def gen():
async with ctx():
yield 'hello'
yield 'world'
async def main():
async with ctx():
async for value in gen():
print(value)
raise RuntimeError()
```
Running main() leads to `RuntimeError: generator didn't stop after throw()`. This happens because async gernerator's `.athrow()` method doesn't re-throw `GeneratorExit` exception; probably, this is wrong. |
|
Date |
User |
Action |
Args |
2018-06-06 17:24:35 | Valentin Lavrinenko | set | recipients:
+ Valentin Lavrinenko, asvetlov, yselivanov |
2018-06-06 17:24:35 | Valentin Lavrinenko | set | messageid: <1528305875.22.0.592728768989.issue33786@psf.upfronthosting.co.za> |
2018-06-06 17:24:35 | Valentin Lavrinenko | link | issue33786 messages |
2018-06-06 17:24:35 | Valentin Lavrinenko | create | |
|