{"provider_name":"Hatena Blog","image_url":null,"title":"Python3 \u306e async/await/yield from","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-miyako.hatenablog.com%2Fentry%2F2016%2F05%2F23%2F193021\" title=\"Python3 \u306e async/await/yield from - Blank File\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/h-miyako/","blog_title":"Blank File","blog_url":"https://h-miyako.hatenablog.com/","url":"https://h-miyako.hatenablog.com/entry/2016/05/23/193021","published":"2016-05-23 19:30:21","height":"190","author_name":"h-miyako","version":"1.0","description":"\u304a\u984c\u300c\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30fb\u30cf\u30a4\u30e9\u30a4\u30c8\u6a5f\u80fd\u3067\u5bfe\u5fdc\u3057\u3066\u307b\u3057\u3044\u8a00\u8a9e\u300d \u30de\u30a4\u304a\u984c\u3078\u306e\u56de\u7b54\u3063\u3066\u30d6\u30ed\u30b0\u306b\u66f8\u3051\u3070\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304b\uff1f \u3088\u304f\u308f\u304b\u3089\u306a\u3044\u30fb\u30fb\u30fb \u3068\u308a\u3042\u3048\u305a\u3001Python3\u3067\u8ffd\u52a0\u3055\u308c\u305f yield from \u6587\u3068 3.5 \u3067\u8ffd\u52a0\u3055\u308c\u305f async/await \u304c\u6b63\u3057\u304f\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u306a\u3044\u3088\u3046\u306a\u306e\u3067\u3001\u5bfe\u5fdc\u3057\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\uff01 import asyncio async def a(): await asyncio.sleep(1) def b(): yeild from asyncio.sleep(1) # yield \u306f OK \u3063\u307d\u3044 def i_loop(n: int) -> int: for i \u2026"}