{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5354","repository_url":"https://api.github.com/repos/rethinkdb/rethinkdb","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5354/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5354/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5354/events","html_url":"https://github.com/rethinkdb/rethinkdb/pull/5354","id":131163747,"number":5354,"title":"Adding __aiter__ and __anext__ to Python AsyncioCursor","user":{"login":"dalanmiller","id":863286,"avatar_url":"https://avatars.githubusercontent.com/u/863286?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanmiller","html_url":"https://github.com/dalanmiller","followers_url":"https://api.github.com/users/dalanmiller/followers","following_url":"https://api.github.com/users/dalanmiller/following{/other_user}","gists_url":"https://api.github.com/users/dalanmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanmiller/subscriptions","organizations_url":"https://api.github.com/users/dalanmiller/orgs","repos_url":"https://api.github.com/users/dalanmiller/repos","events_url":"https://api.github.com/users/dalanmiller/events{/privacy}","received_events_url":"https://api.github.com/users/dalanmiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/labels/Python","name":"Python","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"Tryneus","id":552910,"avatar_url":"https://avatars.githubusercontent.com/u/552910?v=3","gravatar_id":"","url":"https://api.github.com/users/Tryneus","html_url":"https://github.com/Tryneus","followers_url":"https://api.github.com/users/Tryneus/followers","following_url":"https://api.github.com/users/Tryneus/following{/other_user}","gists_url":"https://api.github.com/users/Tryneus/gists{/gist_id}","starred_url":"https://api.github.com/users/Tryneus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tryneus/subscriptions","organizations_url":"https://api.github.com/users/Tryneus/orgs","repos_url":"https://api.github.com/users/Tryneus/repos","events_url":"https://api.github.com/users/Tryneus/events{/privacy}","received_events_url":"https://api.github.com/users/Tryneus/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/120","html_url":"https://github.com/rethinkdb/rethinkdb/milestones/2.4","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/milestones/120/labels","id":1690485,"number":120,"title":"2.4","description":"","creator":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"open_issues":19,"closed_issues":3,"state":"open","created_at":"2016-04-07T18:34:44Z","updated_at":"2016-05-26T23:41:26Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-02-03T21:43:49Z","updated_at":"2016-05-30T16:40:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/pulls/5354","html_url":"https://github.com/rethinkdb/rethinkdb/pull/5354","diff_url":"https://github.com/rethinkdb/rethinkdb/pull/5354.diff","patch_url":"https://github.com/rethinkdb/rethinkdb/pull/5354.patch"},"body":"Looking at [PEP 0492](https://www.python.org/dev/peps/pep-0492/#asynchronous-iterators-and-async-for) I'm adding `__aiter__` and `__anext__` to support the following syntax in Python 3.5. \r\n\r\nTalked with @Tryneus about the timeout and felt that an infinite timeout would be the best default for both changefeeds and normal queries. Users can use `._get_next(...)` if they want to explicitly set a timeout. \r\n\r\n```python\r\nconn = await r.connect(\"localhost\", 28015)\r\nchanges = await r.db(\"python\").table(\"python\").changes()[\"new_val\"].run(conn)\r\n\r\n# The changes allow for this async for syntax.\r\nasync for change in changes:\r\n    # Work with change\r\n```\r\n\r\nAlso related to rethinkdb/docs#949."},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/222525841","html_url":"https://github.com/rethinkdb/rethinkdb/pull/5354#issuecomment-222525841","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/5354","id":222525841,"user":{"login":"ultrabug","id":474389,"avatar_url":"https://avatars.githubusercontent.com/u/474389?v=3","gravatar_id":"","url":"https://api.github.com/users/ultrabug","html_url":"https://github.com/ultrabug","followers_url":"https://api.github.com/users/ultrabug/followers","following_url":"https://api.github.com/users/ultrabug/following{/other_user}","gists_url":"https://api.github.com/users/ultrabug/gists{/gist_id}","starred_url":"https://api.github.com/users/ultrabug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ultrabug/subscriptions","organizations_url":"https://api.github.com/users/ultrabug/orgs","repos_url":"https://api.github.com/users/ultrabug/repos","events_url":"https://api.github.com/users/ultrabug/events{/privacy}","received_events_url":"https://api.github.com/users/ultrabug/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T16:40:12Z","updated_at":"2016-05-30T16:40:12Z","body":"Awesome :+1: please"}}
{"actor":{"display_login":"ultrabug"}}