{"id":11693,"date":"2015-07-14T11:50:42","date_gmt":"2015-07-14T15:50:42","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=11693"},"modified":"2015-07-14T11:50:42","modified_gmt":"2015-07-14T15:50:42","slug":"python-3-5-async-and-await","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2015\/07\/14\/python-3-5-async-and-await\/","title":{"rendered":"Python 3.5: async and await"},"content":{"rendered":"<p><a href=\"https:\/\/docs.python.org\/3.5\/whatsnew\/3.5.html\">What&rsquo;s New in Python 3.5<\/a> (via <a href=\"https:\/\/news.ycombinator.com\/item?id=9845017\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/docs.python.org\/3.5\/whatsnew\/3.5.html\">\n<p>[<a href=\"http:\/\/www.python.org\/dev\/peps\/pep-0492\">PEP 492<\/a>] added dedicated syntax for declaring <a href=\"https:\/\/docs.python.org\/3.5\/glossary.html#term-coroutine\">coroutines<\/a>, <a href=\"https:\/\/docs.python.org\/3.5\/reference\/expressions.html#await\">await<\/a> expressions, new asynchronous <a href=\"https:\/\/docs.python.org\/3.5\/reference\/compound_stmts.html#async-for\">async for<\/a> and <a href=\"https:\/\/docs.python.org\/3.5\/reference\/compound_stmts.html#async-with\">async with<\/a> statements.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>What&rsquo;s New in Python 3.5 (via Hacker News): [PEP 492] added dedicated syntax for declaring coroutines, await expressions, new asynchronous async for and async with statements.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[800,46,71,232],"class_list":["post-11693","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-concurrency","tag-languagedesign","tag-programming","tag-python"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=11693"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11693\/revisions"}],"predecessor-version":[{"id":11694,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/11693\/revisions\/11694"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=11693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=11693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=11693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}