You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
run_in_executor incorrectly identifies xmlrpclib methods as coroutines #458
asyncio.isfuture is a fairly recent addition, there is no stable Python out there with it. And the most recent version of isfuture should handle proxy & mock objects.
The problem is actually in asyncio.iscoroutinefunction, I've opened a PR to fix it: #459.
Activity
gvanrossum commentedon Nov 9, 2016
Looks like this is because ServerProxy overrides
__gettattr__to treat any attribute as a potential method.Can you work around it by wrapping the listMethods call in a lambda? E.g.
For a real fix, maybe asyncio.isfuture() should check whether
_asyncio_future_blockingis a bool or int? @1st1?1st1 commentedon Nov 9, 2016
asyncio.isfutureis a fairly recent addition, there is no stable Python out there with it. And the most recent version ofisfutureshould handle proxy & mock objects.The problem is actually in
asyncio.iscoroutinefunction, I've opened a PR to fix it: #459.1st1 commentedon Nov 15, 2016
Closing the issue, the PR to fix it has just been merged.