I've got code that looks somewhat like:
@asyncio.coroutine
def myfunction():
result = yield from bot.whois(something) # returns an asyncio.Future()
return result['account']
How would I convert this to something that works in Python 2.7? Is that even possible?
The question Converting "yield from" statement to Python 2.7 code isn't applicable, because it throws away the result.