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 yselivanov
Recipients asvetlov, tomaszdrozdz, yselivanov
Date 2020-07-06.21:47:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594072042.66.0.943730657949.issue41202@roundup.psfhosted.org>
In-reply-to
Content
The idiomatic way:


async def main():
  loop = asyncio.get_running_loop()
  loop.set_exception_handler(...)
  # other code

asyncio.run(main())

We don't want to add new arguments to asyncio.run as there would be too many.
History
Date User Action Args
2020-07-06 21:47:22yselivanovsetrecipients: + yselivanov, asvetlov, tomaszdrozdz
2020-07-06 21:47:22yselivanovsetmessageid: <1594072042.66.0.943730657949.issue41202@roundup.psfhosted.org>
2020-07-06 21:47:22yselivanovlinkissue41202 messages
2020-07-06 21:47:22yselivanovcreate