[issue30098] Verbose TypeError for asyncio.ensure_future
crenwick
report at bugs.python.org
Tue Apr 18 19:20:53 EDT 2017
crenwick added the comment:
> it already raises a TypeError with a clear message
This is more to my point: I found the TypeError message not clear at all.
>From my prospective, I was using a future object returned from an asyncio function to call another asyncio function, yet that function was telling me it could only use a future with it.
Though I eventually figured out what was going on, I think that a more clear message at that moment would have been very helpful to me. And I think other users who benefit from this was well.
A better warning/wording for the API would be helpful as well, but I don't think it fully suffices the problem.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30098>
_______________________________________
More information about the Python-bugs-list
mailing list