{"action":"created","comment":{"url":"https://api.github.com/repos/numpy/numpy/pulls/comments/56765704","id":56765704,"diff_hunk":"@@ -1343,11 +1343,15 @@ def roll(a, shift, axis=None):\n     ----------\n     a : array_like\n         Input array.\n-    shift : int\n-        The number of places by which elements are shifted.\n-    axis : int, optional\n-        The axis along which elements are shifted.  By default, the array\n-        is flattened before shifting, after which the original\n+    shift : int or tuple of ints\n+        The number of places by which elements are shifted.  If a tuple,\n+        then `axis` must be a tuple of the same size, and each of the\n+        given axes is shifted by the corresponding number.  If an int","path":"numpy/core/numeric.py","position":12,"original_position":12,"commit_id":"0082082f8a07fc42a37a7b4a84dcb5d47a4bbdf1","original_commit_id":"0082082f8a07fc42a37a7b4a84dcb5d47a4bbdf1","user":{"login":"seberg","id":61977,"avatar_url":"https://avatars.githubusercontent.com/u/61977?v=3","gravatar_id":"","url":"https://api.github.com/users/seberg","html_url":"https://github.com/seberg","followers_url":"https://api.github.com/users/seberg/followers","following_url":"https://api.github.com/users/seberg/following{/other_user}","gists_url":"https://api.github.com/users/seberg/gists{/gist_id}","starred_url":"https://api.github.com/users/seberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seberg/subscriptions","organizations_url":"https://api.github.com/users/seberg/orgs","repos_url":"https://api.github.com/users/seberg/repos","events_url":"https://api.github.com/users/seberg/events{/privacy}","received_events_url":"https://api.github.com/users/seberg/received_events","type":"User","site_admin":false},"body":"Oh, OK, no I prefer tuple or sequence of ints. Thought we used sequence mostly, but if we use tuple as well, just keep it as it is. It currently is more an \"array-like of ints\" in implementation, but I don't like that too much to be honest (you could put in a 2x2 array...).","created_at":"2016-03-20T14:57:03Z","updated_at":"2016-03-20T14:57:03Z","html_url":"https://github.com/numpy/numpy/pull/7438#discussion_r56765704","pull_request_url":"https://api.github.com/repos/numpy/numpy/pulls/7438","_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments/56765704"},"html":{"href":"https://github.com/numpy/numpy/pull/7438#discussion_r56765704"},"pull_request":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7438"}}},"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/7438","id":63484435,"html_url":"https://github.com/numpy/numpy/pull/7438","diff_url":"https://github.com/numpy/numpy/pull/7438.diff","patch_url":"https://github.com/numpy/numpy/pull/7438.patch","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7438","number":7438,"state":"open","locked":false,"title":"Allow rolling multiple axes at the same time.","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"body":"Also switched the error message to match the one of ufuncs, because the\r\naxis can actually also be negative.\r\n\r\nSee #5867.","created_at":"2016-03-20T01:56:46Z","updated_at":"2016-03-20T14:57:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f833990c94d8bd10ecf86c7d470f5bde0981395","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numpy/numpy/pulls/7438/commits","review_comments_url":"https://api.github.com/repos/numpy/numpy/pulls/7438/comments","review_comment_url":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7438/comments","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/0082082f8a07fc42a37a7b4a84dcb5d47a4bbdf1","head":{"label":"anntzer:multidim-roll","ref":"multidim-roll","sha":"0082082f8a07fc42a37a7b4a84dcb5d47a4bbdf1","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"repo":{"id":34845974,"name":"numpy","full_name":"anntzer/numpy","owner":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anntzer/numpy","description":"Numpy main repository","fork":true,"url":"https://api.github.com/repos/anntzer/numpy","forks_url":"https://api.github.com/repos/anntzer/numpy/forks","keys_url":"https://api.github.com/repos/anntzer/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anntzer/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anntzer/numpy/teams","hooks_url":"https://api.github.com/repos/anntzer/numpy/hooks","issue_events_url":"https://api.github.com/repos/anntzer/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/anntzer/numpy/events","assignees_url":"https://api.github.com/repos/anntzer/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/anntzer/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/anntzer/numpy/tags","blobs_url":"https://api.github.com/repos/anntzer/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anntzer/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anntzer/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/anntzer/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anntzer/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/anntzer/numpy/languages","stargazers_url":"https://api.github.com/repos/anntzer/numpy/stargazers","contributors_url":"https://api.github.com/repos/anntzer/numpy/contributors","subscribers_url":"https://api.github.com/repos/anntzer/numpy/subscribers","subscription_url":"https://api.github.com/repos/anntzer/numpy/subscription","commits_url":"https://api.github.com/repos/anntzer/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/anntzer/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/anntzer/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/anntzer/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/anntzer/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/anntzer/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anntzer/numpy/merges","archive_url":"https://api.github.com/repos/anntzer/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anntzer/numpy/downloads","issues_url":"https://api.github.com/repos/anntzer/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/anntzer/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/anntzer/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/anntzer/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anntzer/numpy/labels{/name}","releases_url":"https://api.github.com/repos/anntzer/numpy/releases{/id}","deployments_url":"https://api.github.com/repos/anntzer/numpy/deployments","created_at":"2015-04-30T09:23:24Z","updated_at":"2016-01-31T18:43:43Z","pushed_at":"2016-03-20T03:52:18Z","git_url":"git://github.com/anntzer/numpy.git","ssh_url":"git@github.com:anntzer/numpy.git","clone_url":"https://github.com/anntzer/numpy.git","svn_url":"https://github.com/anntzer/numpy","homepage":"http://www.numpy.org/","size":44004,"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":"41ec9fc8b7ee9b710c3054b9e9409a7a1f6082f7","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-03-20T09:43:02Z","pushed_at":"2016-03-20T13:44:49Z","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":65585,"stargazers_count":2741,"watchers_count":2741,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1436,"mirror_url":null,"open_issues_count":1162,"forks":1436,"open_issues":1162,"watchers":2741,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7438"},"html":{"href":"https://github.com/numpy/numpy/pull/7438"},"issue":{"href":"https://api.github.com/repos/numpy/numpy/issues/7438"},"comments":{"href":"https://api.github.com/repos/numpy/numpy/issues/7438/comments"},"review_comments":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7438/comments"},"review_comment":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numpy/numpy/pulls/7438/commits"},"statuses":{"href":"https://api.github.com/repos/numpy/numpy/statuses/0082082f8a07fc42a37a7b4a84dcb5d47a4bbdf1"}}}}