{"action":"closed","issue":{"url":"https://api.github.com/repos/aaugustin/websockets/issues/435","repository_url":"https://api.github.com/repos/aaugustin/websockets","labels_url":"https://api.github.com/repos/aaugustin/websockets/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/aaugustin/websockets/issues/435/comments","events_url":"https://api.github.com/repos/aaugustin/websockets/issues/435/events","html_url":"https://github.com/aaugustin/websockets/issues/435","id":339766344,"node_id":"MDU6SXNzdWUzMzk3NjYzNDQ=","number":435,"title":"Using yield from in Python 3.7 causes TypeError","user":{"login":"asnelzin","id":2456311,"node_id":"MDQ6VXNlcjI0NTYzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/2456311?v=4","gravatar_id":"","url":"https://api.github.com/users/asnelzin","html_url":"https://github.com/asnelzin","followers_url":"https://api.github.com/users/asnelzin/followers","following_url":"https://api.github.com/users/asnelzin/following{/other_user}","gists_url":"https://api.github.com/users/asnelzin/gists{/gist_id}","starred_url":"https://api.github.com/users/asnelzin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asnelzin/subscriptions","organizations_url":"https://api.github.com/users/asnelzin/orgs","repos_url":"https://api.github.com/users/asnelzin/repos","events_url":"https://api.github.com/users/asnelzin/events{/privacy}","received_events_url":"https://api.github.com/users/asnelzin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-10T09:38:20Z","updated_at":"2018-07-11T16:06:45Z","closed_at":"2018-07-11T16:06:45Z","author_association":"NONE","body":"Library what I use is using `yield from` with `websockets.connect` in Python 3.7 \r\n```\r\nyield from websockets.connect(self.address)\r\n```\r\nI am getting an error: `TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator`\r\n\r\nAs I can see, in Python 3.7 `loop.create_connection` is now a native coroutine, so you can not `yield from` it. Maybe we can mark `__iter__` with `@asyncio.coroutine` not only for Python < 3.5?\r\n\r\nNB: I am using master version websockets @ `39b050fc8`"}}
{"actor":{"display_login":"RemiCardona"}}