{"action":"created","comment":{"url":"https://api.github.com/repos/numpy/numpy/pulls/comments/84700043","pull_request_review_id":5460659,"id":84700043,"diff_hunk":"@@ -1711,12 +1711,17 @@ def diff(a, n=1, axis=-1):\n         The number of times values are differenced.\n     axis : int, optional\n         The axis along which the difference is taken, default is the last axis.\n+    to_begin : 1d array_like","path":"numpy/lib/function_base.py","position":13,"original_position":13,"commit_id":"042a8aff8f61871a32fa950adbd51d48201c5e01","original_commit_id":"042a8aff8f61871a32fa950adbd51d48201c5e01","user":{"login":"madphysicist","id":4617010,"avatar_url":"https://avatars.githubusercontent.com/u/4617010?v=3","gravatar_id":"","url":"https://api.github.com/users/madphysicist","html_url":"https://github.com/madphysicist","followers_url":"https://api.github.com/users/madphysicist/followers","following_url":"https://api.github.com/users/madphysicist/following{/other_user}","gists_url":"https://api.github.com/users/madphysicist/gists{/gist_id}","starred_url":"https://api.github.com/users/madphysicist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madphysicist/subscriptions","organizations_url":"https://api.github.com/users/madphysicist/orgs","repos_url":"https://api.github.com/users/madphysicist/repos","events_url":"https://api.github.com/users/madphysicist/events{/privacy}","received_events_url":"https://api.github.com/users/madphysicist/received_events","type":"User","site_admin":false},"body":"Add a comment here about the required shape please. This should work for arbitrary-dimensional `a`.","created_at":"2016-10-24T14:30:13Z","updated_at":"2016-10-24T14:30:13Z","html_url":"https://github.com/numpy/numpy/pull/8206#discussion_r84700043","pull_request_url":"https://api.github.com/repos/numpy/numpy/pulls/8206","_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments/84700043"},"html":{"href":"https://github.com/numpy/numpy/pull/8206#discussion_r84700043"},"pull_request":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8206"}}},"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/8206","id":90600533,"html_url":"https://github.com/numpy/numpy/pull/8206","diff_url":"https://github.com/numpy/numpy/pull/8206.diff","patch_url":"https://github.com/numpy/numpy/pull/8206.patch","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8206","number":8206,"state":"open","locked":false,"title":"ENH: add padding options to diff","user":{"login":"mattharrigan","id":10331018,"avatar_url":"https://avatars.githubusercontent.com/u/10331018?v=3","gravatar_id":"","url":"https://api.github.com/users/mattharrigan","html_url":"https://github.com/mattharrigan","followers_url":"https://api.github.com/users/mattharrigan/followers","following_url":"https://api.github.com/users/mattharrigan/following{/other_user}","gists_url":"https://api.github.com/users/mattharrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/mattharrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattharrigan/subscriptions","organizations_url":"https://api.github.com/users/mattharrigan/orgs","repos_url":"https://api.github.com/users/mattharrigan/repos","events_url":"https://api.github.com/users/mattharrigan/events{/privacy}","received_events_url":"https://api.github.com/users/mattharrigan/received_events","type":"User","site_admin":false},"body":"Add kwargs to_begin and to_end, allowing for values to be inserted\r\non either end of the differences.  Similiar to options for ediff1d.\r\nCloses #8132","created_at":"2016-10-24T12:16:49Z","updated_at":"2016-10-24T14:30:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f293de2025c2cb10a7c82103e98540b475e12b2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/numpy/numpy/pulls/8206/commits","review_comments_url":"https://api.github.com/repos/numpy/numpy/pulls/8206/comments","review_comment_url":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8206/comments","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/042a8aff8f61871a32fa950adbd51d48201c5e01","head":{"label":"mattharrigan:diff-to-begin","ref":"diff-to-begin","sha":"042a8aff8f61871a32fa950adbd51d48201c5e01","user":{"login":"mattharrigan","id":10331018,"avatar_url":"https://avatars.githubusercontent.com/u/10331018?v=3","gravatar_id":"","url":"https://api.github.com/users/mattharrigan","html_url":"https://github.com/mattharrigan","followers_url":"https://api.github.com/users/mattharrigan/followers","following_url":"https://api.github.com/users/mattharrigan/following{/other_user}","gists_url":"https://api.github.com/users/mattharrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/mattharrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattharrigan/subscriptions","organizations_url":"https://api.github.com/users/mattharrigan/orgs","repos_url":"https://api.github.com/users/mattharrigan/repos","events_url":"https://api.github.com/users/mattharrigan/events{/privacy}","received_events_url":"https://api.github.com/users/mattharrigan/received_events","type":"User","site_admin":false},"repo":{"id":70907889,"name":"numpy","full_name":"mattharrigan/numpy","owner":{"login":"mattharrigan","id":10331018,"avatar_url":"https://avatars.githubusercontent.com/u/10331018?v=3","gravatar_id":"","url":"https://api.github.com/users/mattharrigan","html_url":"https://github.com/mattharrigan","followers_url":"https://api.github.com/users/mattharrigan/followers","following_url":"https://api.github.com/users/mattharrigan/following{/other_user}","gists_url":"https://api.github.com/users/mattharrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/mattharrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattharrigan/subscriptions","organizations_url":"https://api.github.com/users/mattharrigan/orgs","repos_url":"https://api.github.com/users/mattharrigan/repos","events_url":"https://api.github.com/users/mattharrigan/events{/privacy}","received_events_url":"https://api.github.com/users/mattharrigan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattharrigan/numpy","description":"Numpy main repository","fork":true,"url":"https://api.github.com/repos/mattharrigan/numpy","forks_url":"https://api.github.com/repos/mattharrigan/numpy/forks","keys_url":"https://api.github.com/repos/mattharrigan/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattharrigan/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattharrigan/numpy/teams","hooks_url":"https://api.github.com/repos/mattharrigan/numpy/hooks","issue_events_url":"https://api.github.com/repos/mattharrigan/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/mattharrigan/numpy/events","assignees_url":"https://api.github.com/repos/mattharrigan/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/mattharrigan/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/mattharrigan/numpy/tags","blobs_url":"https://api.github.com/repos/mattharrigan/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattharrigan/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattharrigan/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattharrigan/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattharrigan/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/mattharrigan/numpy/languages","stargazers_url":"https://api.github.com/repos/mattharrigan/numpy/stargazers","contributors_url":"https://api.github.com/repos/mattharrigan/numpy/contributors","subscribers_url":"https://api.github.com/repos/mattharrigan/numpy/subscribers","subscription_url":"https://api.github.com/repos/mattharrigan/numpy/subscription","commits_url":"https://api.github.com/repos/mattharrigan/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattharrigan/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattharrigan/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattharrigan/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattharrigan/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/mattharrigan/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattharrigan/numpy/merges","archive_url":"https://api.github.com/repos/mattharrigan/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattharrigan/numpy/downloads","issues_url":"https://api.github.com/repos/mattharrigan/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/mattharrigan/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/mattharrigan/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/mattharrigan/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattharrigan/numpy/labels{/name}","releases_url":"https://api.github.com/repos/mattharrigan/numpy/releases{/id}","deployments_url":"https://api.github.com/repos/mattharrigan/numpy/deployments","created_at":"2016-10-14T12:23:56Z","updated_at":"2016-10-14T12:24:01Z","pushed_at":"2016-10-24T12:14:53Z","git_url":"git://github.com/mattharrigan/numpy.git","ssh_url":"git@github.com:mattharrigan/numpy.git","clone_url":"https://github.com/mattharrigan/numpy.git","svn_url":"https://github.com/mattharrigan/numpy","homepage":"http://www.numpy.org/","size":43764,"stargazers_count":0,"watchers_count":0,"language":"C","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":"master"}},"base":{"label":"numpy:master","ref":"master","sha":"e7d6f36de23061fe3b1f3c1aabe273fc4999acc4","user":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"repo":{"id":908607,"name":"numpy","full_name":"numpy/numpy","owner":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numpy/numpy","description":"Numpy main repository","fork":false,"url":"https://api.github.com/repos/numpy/numpy","forks_url":"https://api.github.com/repos/numpy/numpy/forks","keys_url":"https://api.github.com/repos/numpy/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numpy/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numpy/numpy/teams","hooks_url":"https://api.github.com/repos/numpy/numpy/hooks","issue_events_url":"https://api.github.com/repos/numpy/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/numpy/numpy/events","assignees_url":"https://api.github.com/repos/numpy/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/numpy/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/numpy/numpy/tags","blobs_url":"https://api.github.com/repos/numpy/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numpy/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numpy/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/numpy/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/numpy/numpy/languages","stargazers_url":"https://api.github.com/repos/numpy/numpy/stargazers","contributors_url":"https://api.github.com/repos/numpy/numpy/contributors","subscribers_url":"https://api.github.com/repos/numpy/numpy/subscribers","subscription_url":"https://api.github.com/repos/numpy/numpy/subscription","commits_url":"https://api.github.com/repos/numpy/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/numpy/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/numpy/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/numpy/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/numpy/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/numpy/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numpy/numpy/merges","archive_url":"https://api.github.com/repos/numpy/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numpy/numpy/downloads","issues_url":"https://api.github.com/repos/numpy/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/numpy/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/numpy/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/numpy/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numpy/numpy/labels{/name}","releases_url":"https://api.github.com/repos/numpy/numpy/releases{/id}","deployments_url":"https://api.github.com/repos/numpy/numpy/deployments","created_at":"2010-09-13T23:02:39Z","updated_at":"2016-10-24T11:16:45Z","pushed_at":"2016-10-24T12:16:50Z","git_url":"git://github.com/numpy/numpy.git","ssh_url":"git@github.com:numpy/numpy.git","clone_url":"https://github.com/numpy/numpy.git","svn_url":"https://github.com/numpy/numpy","homepage":"http://www.numpy.org/","size":82008,"stargazers_count":3471,"watchers_count":3471,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1756,"mirror_url":null,"open_issues_count":1323,"forks":1756,"open_issues":1323,"watchers":3471,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8206"},"html":{"href":"https://github.com/numpy/numpy/pull/8206"},"issue":{"href":"https://api.github.com/repos/numpy/numpy/issues/8206"},"comments":{"href":"https://api.github.com/repos/numpy/numpy/issues/8206/comments"},"review_comments":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8206/comments"},"review_comment":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8206/commits"},"statuses":{"href":"https://api.github.com/repos/numpy/numpy/statuses/042a8aff8f61871a32fa950adbd51d48201c5e01"}}}}
{"actor":{"display_login":"madphysicist"}}