Hi Victor,
On 2015-04-23 4:43 AM, Victor Stinner wrote:
[...]
From my understanding, the PEP 3151 simply does not support
asyncio.Future. Am I right?
Greg wants to implement __cocall__ on futures. This way
you'll be able to write
cocall fut() # instead of "await fut"
So you *will have to* use "()"
Another problem is functions that return future:
def do_something():
...
return fut
With Greg's idea to call it you would do:
cocall (do_something())()
That means that you can't refactor your "do_something"
function and make it a coroutine.
Yury
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com