次のようなコードがあります。
@asyncio.coroutine
def myfunction():
result = yield from bot.whois(something) # returns an asyncio.Future()
return result['account']
これを Python 2.7 で動作するものに変換するにはどうすればよいですか? それは可能ですか?
Converting "yield from" statement to Python 2.7 code という質問は、結果を破棄するため、該当しません。