{"action":"opened","number":34,"pull_request":{"url":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34","id":58133203,"html_url":"https://github.com/neo4j/neo4j-python-driver/pull/34","diff_url":"https://github.com/neo4j/neo4j-python-driver/pull/34.diff","patch_url":"https://github.com/neo4j/neo4j-python-driver/pull/34.patch","issue_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/34","number":34,"state":"open","locked":false,"title":"Make Record implement the iterator protocol","user":{"login":"spacecowboy","id":223655,"avatar_url":"https://avatars.githubusercontent.com/u/223655?v=3","gravatar_id":"","url":"https://api.github.com/users/spacecowboy","html_url":"https://github.com/spacecowboy","followers_url":"https://api.github.com/users/spacecowboy/followers","following_url":"https://api.github.com/users/spacecowboy/following{/other_user}","gists_url":"https://api.github.com/users/spacecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/spacecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacecowboy/subscriptions","organizations_url":"https://api.github.com/users/spacecowboy/orgs","repos_url":"https://api.github.com/users/spacecowboy/repos","events_url":"https://api.github.com/users/spacecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/spacecowboy/received_events","type":"User","site_admin":false},"body":"Was surprised that I could not iterate on the ResultCursor. So I fixed\r\nthat.\r\n\r\nNow possible to write the following:\r\n\r\n```python\r\ncursor = session.run(\"CALL example.test()\")\r\n\r\nfor result in cursor:\r\n    print(result)\r\n```\r\n\r\noutput:\r\n`<Record out=u'Test' x=5.0>`\r\n\r\nThe old behavior is still available under a new name:\r\n\r\n```python\r\nwhile cursor.move_to_next():\r\n    print(cursor['x'])\r\n```","created_at":"2016-02-03T12:55:59Z","updated_at":"2016-02-03T12:55:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34/commits","review_comments_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34/comments","review_comment_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/34/comments","statuses_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/statuses/a8e9e22637e631369806ae47760734652ccd5d83","head":{"label":"spacecowboy:iteration","ref":"iteration","sha":"a8e9e22637e631369806ae47760734652ccd5d83","user":{"login":"spacecowboy","id":223655,"avatar_url":"https://avatars.githubusercontent.com/u/223655?v=3","gravatar_id":"","url":"https://api.github.com/users/spacecowboy","html_url":"https://github.com/spacecowboy","followers_url":"https://api.github.com/users/spacecowboy/followers","following_url":"https://api.github.com/users/spacecowboy/following{/other_user}","gists_url":"https://api.github.com/users/spacecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/spacecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacecowboy/subscriptions","organizations_url":"https://api.github.com/users/spacecowboy/orgs","repos_url":"https://api.github.com/users/spacecowboy/repos","events_url":"https://api.github.com/users/spacecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/spacecowboy/received_events","type":"User","site_admin":false},"repo":{"id":50998605,"name":"neo4j-python-driver","full_name":"spacecowboy/neo4j-python-driver","owner":{"login":"spacecowboy","id":223655,"avatar_url":"https://avatars.githubusercontent.com/u/223655?v=3","gravatar_id":"","url":"https://api.github.com/users/spacecowboy","html_url":"https://github.com/spacecowboy","followers_url":"https://api.github.com/users/spacecowboy/followers","following_url":"https://api.github.com/users/spacecowboy/following{/other_user}","gists_url":"https://api.github.com/users/spacecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/spacecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacecowboy/subscriptions","organizations_url":"https://api.github.com/users/spacecowboy/orgs","repos_url":"https://api.github.com/users/spacecowboy/repos","events_url":"https://api.github.com/users/spacecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/spacecowboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spacecowboy/neo4j-python-driver","description":"Neo4j Bolt driver for Python [BETA]","fork":true,"url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver","forks_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/forks","keys_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/teams","hooks_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/hooks","issue_events_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/issues/events{/number}","events_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/events","assignees_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/assignees{/user}","branches_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/branches{/branch}","tags_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/tags","blobs_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/languages","stargazers_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/stargazers","contributors_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/contributors","subscribers_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/subscribers","subscription_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/subscription","commits_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/contents/{+path}","compare_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/merges","archive_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/downloads","issues_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/issues{/number}","pulls_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/labels{/name}","releases_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/releases{/id}","deployments_url":"https://api.github.com/repos/spacecowboy/neo4j-python-driver/deployments","created_at":"2016-02-03T12:37:37Z","updated_at":"2016-02-03T12:37:38Z","pushed_at":"2016-02-03T12:55:14Z","git_url":"git://github.com/spacecowboy/neo4j-python-driver.git","ssh_url":"git@github.com:spacecowboy/neo4j-python-driver.git","clone_url":"https://github.com/spacecowboy/neo4j-python-driver.git","svn_url":"https://github.com/spacecowboy/neo4j-python-driver","homepage":"","size":431,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.0"}},"base":{"label":"neo4j:1.0","ref":"1.0","sha":"42ed172551c236a473823ccb52551f4b0f0e62ea","user":{"login":"neo4j","id":201120,"avatar_url":"https://avatars.githubusercontent.com/u/201120?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4j","html_url":"https://github.com/neo4j","followers_url":"https://api.github.com/users/neo4j/followers","following_url":"https://api.github.com/users/neo4j/following{/other_user}","gists_url":"https://api.github.com/users/neo4j/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4j/subscriptions","organizations_url":"https://api.github.com/users/neo4j/orgs","repos_url":"https://api.github.com/users/neo4j/repos","events_url":"https://api.github.com/users/neo4j/events{/privacy}","received_events_url":"https://api.github.com/users/neo4j/received_events","type":"Organization","site_admin":false},"repo":{"id":35100117,"name":"neo4j-python-driver","full_name":"neo4j/neo4j-python-driver","owner":{"login":"neo4j","id":201120,"avatar_url":"https://avatars.githubusercontent.com/u/201120?v=3","gravatar_id":"","url":"https://api.github.com/users/neo4j","html_url":"https://github.com/neo4j","followers_url":"https://api.github.com/users/neo4j/followers","following_url":"https://api.github.com/users/neo4j/following{/other_user}","gists_url":"https://api.github.com/users/neo4j/gists{/gist_id}","starred_url":"https://api.github.com/users/neo4j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neo4j/subscriptions","organizations_url":"https://api.github.com/users/neo4j/orgs","repos_url":"https://api.github.com/users/neo4j/repos","events_url":"https://api.github.com/users/neo4j/events{/privacy}","received_events_url":"https://api.github.com/users/neo4j/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neo4j/neo4j-python-driver","description":"Neo4j Bolt driver for Python [BETA]","fork":false,"url":"https://api.github.com/repos/neo4j/neo4j-python-driver","forks_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/forks","keys_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/teams","hooks_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/hooks","issue_events_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/events{/number}","events_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/events","assignees_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/assignees{/user}","branches_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/branches{/branch}","tags_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/tags","blobs_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/languages","stargazers_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/stargazers","contributors_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/contributors","subscribers_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/subscribers","subscription_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/subscription","commits_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/contents/{+path}","compare_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/merges","archive_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/downloads","issues_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues{/number}","pulls_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/labels{/name}","releases_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/releases{/id}","deployments_url":"https://api.github.com/repos/neo4j/neo4j-python-driver/deployments","created_at":"2015-05-05T13:08:20Z","updated_at":"2016-01-11T14:33:59Z","pushed_at":"2016-02-03T12:54:36Z","git_url":"git://github.com/neo4j/neo4j-python-driver.git","ssh_url":"git@github.com:neo4j/neo4j-python-driver.git","clone_url":"https://github.com/neo4j/neo4j-python-driver.git","svn_url":"https://github.com/neo4j/neo4j-python-driver","homepage":"","size":465,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":5,"forks":7,"open_issues":5,"watchers":17,"default_branch":"1.0"}},"_links":{"self":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34"},"html":{"href":"https://github.com/neo4j/neo4j-python-driver/pull/34"},"issue":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/34"},"comments":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/neo4j/neo4j-python-driver/statuses/a8e9e22637e631369806ae47760734652ccd5d83"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":4,"changed_files":1}}