{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/542","labels_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/542/comments","events_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/542/events","html_url":"https://github.com/KeepSafe/aiohttp/pull/542","id":109484467,"number":542,"title":"Added Python 3.5 “async for” compatibility","user":{"login":"flying-sheep","id":291575,"avatar_url":"https://avatars.githubusercontent.com/u/291575?v=3","gravatar_id":"","url":"https://api.github.com/users/flying-sheep","html_url":"https://github.com/flying-sheep","followers_url":"https://api.github.com/users/flying-sheep/followers","following_url":"https://api.github.com/users/flying-sheep/following{/other_user}","gists_url":"https://api.github.com/users/flying-sheep/gists{/gist_id}","starred_url":"https://api.github.com/users/flying-sheep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flying-sheep/subscriptions","organizations_url":"https://api.github.com/users/flying-sheep/orgs","repos_url":"https://api.github.com/users/flying-sheep/repos","events_url":"https://api.github.com/users/flying-sheep/events{/privacy}","received_events_url":"https://api.github.com/users/flying-sheep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-02T12:47:17Z","updated_at":"2015-10-03T09:37:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/pulls/542","html_url":"https://github.com/KeepSafe/aiohttp/pull/542","diff_url":"https://github.com/KeepSafe/aiohttp/pull/542.diff","patch_url":"https://github.com/KeepSafe/aiohttp/pull/542.patch"},"body":"Instead of\r\n\r\n```py\r\nwhile True:\r\n\tmsg = await dataqueue.read()\r\n\t...\r\n```\r\n\r\ndo:\r\n\r\n```py\r\nasync for msg in dataqueue:\r\n\t...\r\n```\r\n\r\nTODO: how to handle `EofStream`?"},"comment":{"url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/comments/145230872","html_url":"https://github.com/KeepSafe/aiohttp/pull/542#issuecomment-145230872","issue_url":"https://api.github.com/repos/KeepSafe/aiohttp/issues/542","id":145230872,"user":{"login":"asvetlov","id":356399,"avatar_url":"https://avatars.githubusercontent.com/u/356399?v=3","gravatar_id":"","url":"https://api.github.com/users/asvetlov","html_url":"https://github.com/asvetlov","followers_url":"https://api.github.com/users/asvetlov/followers","following_url":"https://api.github.com/users/asvetlov/following{/other_user}","gists_url":"https://api.github.com/users/asvetlov/gists{/gist_id}","starred_url":"https://api.github.com/users/asvetlov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvetlov/subscriptions","organizations_url":"https://api.github.com/users/asvetlov/orgs","repos_url":"https://api.github.com/users/asvetlov/repos","events_url":"https://api.github.com/users/asvetlov/events{/privacy}","received_events_url":"https://api.github.com/users/asvetlov/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T09:37:48Z","updated_at":"2015-10-03T09:37:48Z","body":"Yes, lease use check like https://github.com/KeepSafe/aiohttp/blob/master/aiohttp/client.py#L447\r\n\r\nI believe just versionadded directive with text like \"available for Python 3.5+ only\" should be enough.\r\n\r\nWe dropped Py3.3, I'm converting the doc to use async/await syntax so Py3.5 is preferable version for next release. "}}