[issue41202] Allow to provide custom exception handler to asyncio.run()
tomaszdrozdz
report at bugs.python.org
Thu Jul 9 06:10:42 EDT 2020
tomaszdrozdz <tomasz.drozdz.1 at protonmail.com> added the comment:
OK.
I understand.
So how about maybe:
def run(main, *, debug=False, loop=None):
...
if loop:
loop = events.new_event_loop()
So we could customize loop like:
loop = events.new_event_loop()
loop.set_XXX(...)
asyncio.run(my_coro, loop=loop)
Just what tehn with debug parameter ?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41202>
_______________________________________
More information about the Python-bugs-list
mailing list