{"action":"created","comment":{"url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/comments/71082776","id":71082776,"diff_hunk":"@@ -1511,6 +1516,12 @@ [NotNull]IList enumerator\n             }\n         }\n \n+        /// <summary>\n+        /// Calls the __next__ method of an iterable\n+        /// </summary>\n+        /// <param name=\"iter\">Iterable instance</param>\n+        /// <param name=\"defaultVal\">Default operation value</param>\n+        /// <returns>Next object or throws an StopIterator exception</returns>\n         public static object next(IEnumerator iter, object defaultVal) {","path":"Src/IronPython/Modules/Builtin.cs","position":22,"original_position":22,"commit_id":"fd66799dcaa84e0ca9c670495719bc123fa39746","original_commit_id":"fd66799dcaa84e0ca9c670495719bc123fa39746","user":{"login":"slide","id":55871,"avatar_url":"https://avatars.githubusercontent.com/u/55871?v=3","gravatar_id":"","url":"https://api.github.com/users/slide","html_url":"https://github.com/slide","followers_url":"https://api.github.com/users/slide/followers","following_url":"https://api.github.com/users/slide/following{/other_user}","gists_url":"https://api.github.com/users/slide/gists{/gist_id}","starred_url":"https://api.github.com/users/slide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slide/subscriptions","organizations_url":"https://api.github.com/users/slide/orgs","repos_url":"https://api.github.com/users/slide/repos","events_url":"https://api.github.com/users/slide/events{/privacy}","received_events_url":"https://api.github.com/users/slide/received_events","type":"User","site_admin":false},"body":"Same here","created_at":"2016-07-17T13:56:17Z","updated_at":"2016-07-17T13:56:17Z","html_url":"https://github.com/IronLanguages/ironpython3/pull/66#discussion_r71082776","pull_request_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/comments/71082776"},"html":{"href":"https://github.com/IronLanguages/ironpython3/pull/66#discussion_r71082776"},"pull_request":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66","id":77188080,"html_url":"https://github.com/IronLanguages/ironpython3/pull/66","diff_url":"https://github.com/IronLanguages/ironpython3/pull/66.diff","patch_url":"https://github.com/IronLanguages/ironpython3/pull/66.patch","issue_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/66","number":66,"state":"open","locked":false,"title":"PEP 3114 -- Renaming iterator.next() to iterator.__next__()","user":{"login":"simplicbe","id":14359329,"avatar_url":"https://avatars.githubusercontent.com/u/14359329?v=3","gravatar_id":"","url":"https://api.github.com/users/simplicbe","html_url":"https://github.com/simplicbe","followers_url":"https://api.github.com/users/simplicbe/followers","following_url":"https://api.github.com/users/simplicbe/following{/other_user}","gists_url":"https://api.github.com/users/simplicbe/gists{/gist_id}","starred_url":"https://api.github.com/users/simplicbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplicbe/subscriptions","organizations_url":"https://api.github.com/users/simplicbe/orgs","repos_url":"https://api.github.com/users/simplicbe/repos","events_url":"https://api.github.com/users/simplicbe/events{/privacy}","received_events_url":"https://api.github.com/users/simplicbe/received_events","type":"User","site_admin":false},"body":"Iterable must now implement `__next__` instead of `next`. Builtin `next` now calls `__next__`.\r\n\r\nWorks pretty well:\r\n\r\n```python\r\n>>> class Test04:\r\n...     def __init__(self):\r\n...         self.l = iter([1, 2, 3, 4])\r\n...     def __iter__(self):\r\n...         return self\r\n...     def __next__(self):\r\n...         return next(self.l)\r\n...\r\n>>> for a in Test04():\r\n...     print (a)\r\n```\r\n\r\nOld style does not work anymore:\r\n\r\n```python\r\n>>> class Test05:\r\n...     def __init__(self):\r\n...         self.l = iter([1, 2, 3, 4])\r\n...     def __iter__(self):\r\n...         return self\r\n...     def next(self):\r\n...         return next(self.l)\r\n...\r\n>>> for b in Test05():\r\n...     print (b)\r\n...\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nTypeError: instance has no next() method\r\n```","created_at":"2016-07-12T20:43:34Z","updated_at":"2016-07-17T13:56:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82189f03038015c0d6e3c4e42ee674832c8a064e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66/commits","review_comments_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66/comments","review_comment_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/66/comments","statuses_url":"https://api.github.com/repos/IronLanguages/ironpython3/statuses/fd66799dcaa84e0ca9c670495719bc123fa39746","head":{"label":"IronLanguages:f_rename_next","ref":"f_rename_next","sha":"fd66799dcaa84e0ca9c670495719bc123fa39746","user":{"login":"IronLanguages","id":18199,"avatar_url":"https://avatars.githubusercontent.com/u/18199?v=3","gravatar_id":"","url":"https://api.github.com/users/IronLanguages","html_url":"https://github.com/IronLanguages","followers_url":"https://api.github.com/users/IronLanguages/followers","following_url":"https://api.github.com/users/IronLanguages/following{/other_user}","gists_url":"https://api.github.com/users/IronLanguages/gists{/gist_id}","starred_url":"https://api.github.com/users/IronLanguages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IronLanguages/subscriptions","organizations_url":"https://api.github.com/users/IronLanguages/orgs","repos_url":"https://api.github.com/users/IronLanguages/repos","events_url":"https://api.github.com/users/IronLanguages/events{/privacy}","received_events_url":"https://api.github.com/users/IronLanguages/received_events","type":"Organization","site_admin":false},"repo":{"id":17266066,"name":"ironpython3","full_name":"IronLanguages/ironpython3","owner":{"login":"IronLanguages","id":18199,"avatar_url":"https://avatars.githubusercontent.com/u/18199?v=3","gravatar_id":"","url":"https://api.github.com/users/IronLanguages","html_url":"https://github.com/IronLanguages","followers_url":"https://api.github.com/users/IronLanguages/followers","following_url":"https://api.github.com/users/IronLanguages/following{/other_user}","gists_url":"https://api.github.com/users/IronLanguages/gists{/gist_id}","starred_url":"https://api.github.com/users/IronLanguages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IronLanguages/subscriptions","organizations_url":"https://api.github.com/users/IronLanguages/orgs","repos_url":"https://api.github.com/users/IronLanguages/repos","events_url":"https://api.github.com/users/IronLanguages/events{/privacy}","received_events_url":"https://api.github.com/users/IronLanguages/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IronLanguages/ironpython3","description":"IronPython 3","fork":false,"url":"https://api.github.com/repos/IronLanguages/ironpython3","forks_url":"https://api.github.com/repos/IronLanguages/ironpython3/forks","keys_url":"https://api.github.com/repos/IronLanguages/ironpython3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IronLanguages/ironpython3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IronLanguages/ironpython3/teams","hooks_url":"https://api.github.com/repos/IronLanguages/ironpython3/hooks","issue_events_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/events{/number}","events_url":"https://api.github.com/repos/IronLanguages/ironpython3/events","assignees_url":"https://api.github.com/repos/IronLanguages/ironpython3/assignees{/user}","branches_url":"https://api.github.com/repos/IronLanguages/ironpython3/branches{/branch}","tags_url":"https://api.github.com/repos/IronLanguages/ironpython3/tags","blobs_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/refs{/sha}","trees_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IronLanguages/ironpython3/statuses/{sha}","languages_url":"https://api.github.com/repos/IronLanguages/ironpython3/languages","stargazers_url":"https://api.github.com/repos/IronLanguages/ironpython3/stargazers","contributors_url":"https://api.github.com/repos/IronLanguages/ironpython3/contributors","subscribers_url":"https://api.github.com/repos/IronLanguages/ironpython3/subscribers","subscription_url":"https://api.github.com/repos/IronLanguages/ironpython3/subscription","commits_url":"https://api.github.com/repos/IronLanguages/ironpython3/commits{/sha}","git_commits_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/commits{/sha}","comments_url":"https://api.github.com/repos/IronLanguages/ironpython3/comments{/number}","issue_comment_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/comments{/number}","contents_url":"https://api.github.com/repos/IronLanguages/ironpython3/contents/{+path}","compare_url":"https://api.github.com/repos/IronLanguages/ironpython3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IronLanguages/ironpython3/merges","archive_url":"https://api.github.com/repos/IronLanguages/ironpython3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IronLanguages/ironpython3/downloads","issues_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues{/number}","pulls_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls{/number}","milestones_url":"https://api.github.com/repos/IronLanguages/ironpython3/milestones{/number}","notifications_url":"https://api.github.com/repos/IronLanguages/ironpython3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IronLanguages/ironpython3/labels{/name}","releases_url":"https://api.github.com/repos/IronLanguages/ironpython3/releases{/id}","deployments_url":"https://api.github.com/repos/IronLanguages/ironpython3/deployments","created_at":"2014-02-27T21:50:49Z","updated_at":"2016-07-14T19:42:55Z","pushed_at":"2016-07-16T07:11:55Z","git_url":"git://github.com/IronLanguages/ironpython3.git","ssh_url":"git@github.com:IronLanguages/ironpython3.git","clone_url":"https://github.com/IronLanguages/ironpython3.git","svn_url":"https://github.com/IronLanguages/ironpython3","homepage":null,"size":15862,"stargazers_count":123,"watchers_count":123,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":54,"forks":24,"open_issues":54,"watchers":123,"default_branch":"master"}},"base":{"label":"IronLanguages:master","ref":"master","sha":"d3b5b9828c9a9f512c8f3ade2aafb4671ddd20a2","user":{"login":"IronLanguages","id":18199,"avatar_url":"https://avatars.githubusercontent.com/u/18199?v=3","gravatar_id":"","url":"https://api.github.com/users/IronLanguages","html_url":"https://github.com/IronLanguages","followers_url":"https://api.github.com/users/IronLanguages/followers","following_url":"https://api.github.com/users/IronLanguages/following{/other_user}","gists_url":"https://api.github.com/users/IronLanguages/gists{/gist_id}","starred_url":"https://api.github.com/users/IronLanguages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IronLanguages/subscriptions","organizations_url":"https://api.github.com/users/IronLanguages/orgs","repos_url":"https://api.github.com/users/IronLanguages/repos","events_url":"https://api.github.com/users/IronLanguages/events{/privacy}","received_events_url":"https://api.github.com/users/IronLanguages/received_events","type":"Organization","site_admin":false},"repo":{"id":17266066,"name":"ironpython3","full_name":"IronLanguages/ironpython3","owner":{"login":"IronLanguages","id":18199,"avatar_url":"https://avatars.githubusercontent.com/u/18199?v=3","gravatar_id":"","url":"https://api.github.com/users/IronLanguages","html_url":"https://github.com/IronLanguages","followers_url":"https://api.github.com/users/IronLanguages/followers","following_url":"https://api.github.com/users/IronLanguages/following{/other_user}","gists_url":"https://api.github.com/users/IronLanguages/gists{/gist_id}","starred_url":"https://api.github.com/users/IronLanguages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IronLanguages/subscriptions","organizations_url":"https://api.github.com/users/IronLanguages/orgs","repos_url":"https://api.github.com/users/IronLanguages/repos","events_url":"https://api.github.com/users/IronLanguages/events{/privacy}","received_events_url":"https://api.github.com/users/IronLanguages/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IronLanguages/ironpython3","description":"IronPython 3","fork":false,"url":"https://api.github.com/repos/IronLanguages/ironpython3","forks_url":"https://api.github.com/repos/IronLanguages/ironpython3/forks","keys_url":"https://api.github.com/repos/IronLanguages/ironpython3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IronLanguages/ironpython3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IronLanguages/ironpython3/teams","hooks_url":"https://api.github.com/repos/IronLanguages/ironpython3/hooks","issue_events_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/events{/number}","events_url":"https://api.github.com/repos/IronLanguages/ironpython3/events","assignees_url":"https://api.github.com/repos/IronLanguages/ironpython3/assignees{/user}","branches_url":"https://api.github.com/repos/IronLanguages/ironpython3/branches{/branch}","tags_url":"https://api.github.com/repos/IronLanguages/ironpython3/tags","blobs_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/refs{/sha}","trees_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IronLanguages/ironpython3/statuses/{sha}","languages_url":"https://api.github.com/repos/IronLanguages/ironpython3/languages","stargazers_url":"https://api.github.com/repos/IronLanguages/ironpython3/stargazers","contributors_url":"https://api.github.com/repos/IronLanguages/ironpython3/contributors","subscribers_url":"https://api.github.com/repos/IronLanguages/ironpython3/subscribers","subscription_url":"https://api.github.com/repos/IronLanguages/ironpython3/subscription","commits_url":"https://api.github.com/repos/IronLanguages/ironpython3/commits{/sha}","git_commits_url":"https://api.github.com/repos/IronLanguages/ironpython3/git/commits{/sha}","comments_url":"https://api.github.com/repos/IronLanguages/ironpython3/comments{/number}","issue_comment_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues/comments{/number}","contents_url":"https://api.github.com/repos/IronLanguages/ironpython3/contents/{+path}","compare_url":"https://api.github.com/repos/IronLanguages/ironpython3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IronLanguages/ironpython3/merges","archive_url":"https://api.github.com/repos/IronLanguages/ironpython3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IronLanguages/ironpython3/downloads","issues_url":"https://api.github.com/repos/IronLanguages/ironpython3/issues{/number}","pulls_url":"https://api.github.com/repos/IronLanguages/ironpython3/pulls{/number}","milestones_url":"https://api.github.com/repos/IronLanguages/ironpython3/milestones{/number}","notifications_url":"https://api.github.com/repos/IronLanguages/ironpython3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IronLanguages/ironpython3/labels{/name}","releases_url":"https://api.github.com/repos/IronLanguages/ironpython3/releases{/id}","deployments_url":"https://api.github.com/repos/IronLanguages/ironpython3/deployments","created_at":"2014-02-27T21:50:49Z","updated_at":"2016-07-14T19:42:55Z","pushed_at":"2016-07-16T07:11:55Z","git_url":"git://github.com/IronLanguages/ironpython3.git","ssh_url":"git@github.com:IronLanguages/ironpython3.git","clone_url":"https://github.com/IronLanguages/ironpython3.git","svn_url":"https://github.com/IronLanguages/ironpython3","homepage":null,"size":15862,"stargazers_count":123,"watchers_count":123,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":54,"forks":24,"open_issues":54,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66"},"html":{"href":"https://github.com/IronLanguages/ironpython3/pull/66"},"issue":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/issues/66"},"comments":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/IronLanguages/ironpython3/statuses/fd66799dcaa84e0ca9c670495719bc123fa39746"}}}}
{"actor":{"display_login":"slide"}}