[issue30083] Asyncio: GeneratorExit + strange exception

2020-09-18 Thread Guilherme Salgado
Guilherme Salgado added the comment: I've also been affected by this and found that if you use asyncio.run() the coroutine is interrupted with a CancelledError as you'd expect. The following script shows that === import asyncio async def handle_connection(reader,

[issue30083] Asyncio: GeneratorExit + strange exception

2017-04-16 Thread Марк Коренберг
Changes by Марк Коренберг : -- components: +asyncio nosy: +yselivanov versions: +Python 3.5 ___ Python tracker ___

[issue30083] Asyncio: GeneratorExit + strange exception

2017-04-16 Thread Марк Коренберг
New submission from Марк Коренберг: How to reproduce: Run the following program: = import asyncio async def handle_connection(reader, writer): try: await reader.readexactly(42) except BaseException as err: print('Interesting: %r.' % err)