Guido van Rossum added the comment:
You seem to miss that run_in_executor() does take *args -- so the partial()
call is only needed if you need to pass keyword args. Is it really worth having
a helper for this one-liner?
def call_async(func, *args):
return asyncio.get_event_loop().run_in_executor(func, *arg)
I'm on the fence myself. I do like the new name better.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue24571>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com