homepage

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.

Author salgado
Recipients salgado, socketpair, yselivanov
Date 2020年09月18日.10:56:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1600426604.68.0.755964155928.issue30083@roundup.psfhosted.org>
In-reply-to
Content
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, writer):
 try:
 await reader.readexactly(42)
 except BaseException as err:
 print('Interesting: %r.' % err)
 raise
 finally:
 writer.close()
async def main():
 listener = await asyncio.start_server(handle_connection, '127.0.0.1', 8888)
 try:
 async with listener:
 await listener.serve_forever()
 except KeyboardInterrupt:
 print('KeyboardInterrupt')
asyncio.run(main())
=============================================
History
Date User Action Args
2020年09月18日 10:56:44salgadosetrecipients: + salgado, socketpair, yselivanov
2020年09月18日 10:56:44salgadosetmessageid: <1600426604.68.0.755964155928.issue30083@roundup.psfhosted.org>
2020年09月18日 10:56:44salgadolinkissue30083 messages
2020年09月18日 10:56:43salgadocreate

AltStyle によって変換されたページ (->オリジナル) /