{"action":"opened","number":788,"pull_request":{"url":"https://api.github.com/repos/pybind/pybind11/pulls/788","id":114893275,"html_url":"https://github.com/pybind/pybind11/pull/788","diff_url":"https://github.com/pybind/pybind11/pull/788.diff","patch_url":"https://github.com/pybind/pybind11/pull/788.patch","issue_url":"https://api.github.com/repos/pybind/pybind11/issues/788","number":788,"state":"open","locked":false,"title":"Generic containers/iterators for shape/strides","user":{"login":"jagerman","id":4459524,"avatar_url":"https://avatars0.githubusercontent.com/u/4459524?v=3","gravatar_id":"","url":"https://api.github.com/users/jagerman","html_url":"https://github.com/jagerman","followers_url":"https://api.github.com/users/jagerman/followers","following_url":"https://api.github.com/users/jagerman/following{/other_user}","gists_url":"https://api.github.com/users/jagerman/gists{/gist_id}","starred_url":"https://api.github.com/users/jagerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagerman/subscriptions","organizations_url":"https://api.github.com/users/jagerman/orgs","repos_url":"https://api.github.com/users/jagerman/repos","events_url":"https://api.github.com/users/jagerman/events{/privacy}","received_events_url":"https://api.github.com/users/jagerman/received_events","type":"User","site_admin":false},"body":"This adds support for constructing `buffer_info` and `array`s using arbitrary containers or iterators instead of requiring a vector.\r\n\r\nOn its own, this adds quite a few templated constructors which isn't all that desirable, but it's needed by PR #782 to preserve backwards compatibility for previous pybind11 versions that accept a `std::vector<size_t>` for strides.  Given a choice between duplicating all the stride-taking constructors (accepting both a `ssize_t` and `size_t` vector) and making the whole interface more general, I think this is a better approach.\r\n\r\nI also seem to recall some discussion a few months ago about wanting something like this, but I can't find the issue/PR where it was mentioned.","created_at":"2017-04-07T20:22:43Z","updated_at":"2017-04-07T20:22:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pybind/pybind11/pulls/788/commits","review_comments_url":"https://api.github.com/repos/pybind/pybind11/pulls/788/comments","review_comment_url":"https://api.github.com/repos/pybind/pybind11/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pybind/pybind11/issues/788/comments","statuses_url":"https://api.github.com/repos/pybind/pybind11/statuses/4ca11733fa36cc6d6e754b69de4118b43f70cd11","head":{"label":"jagerman:iterator-shape-strides","ref":"iterator-shape-strides","sha":"4ca11733fa36cc6d6e754b69de4118b43f70cd11","user":{"login":"jagerman","id":4459524,"avatar_url":"https://avatars0.githubusercontent.com/u/4459524?v=3","gravatar_id":"","url":"https://api.github.com/users/jagerman","html_url":"https://github.com/jagerman","followers_url":"https://api.github.com/users/jagerman/followers","following_url":"https://api.github.com/users/jagerman/following{/other_user}","gists_url":"https://api.github.com/users/jagerman/gists{/gist_id}","starred_url":"https://api.github.com/users/jagerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagerman/subscriptions","organizations_url":"https://api.github.com/users/jagerman/orgs","repos_url":"https://api.github.com/users/jagerman/repos","events_url":"https://api.github.com/users/jagerman/events{/privacy}","received_events_url":"https://api.github.com/users/jagerman/received_events","type":"User","site_admin":false},"repo":{"id":62475786,"name":"pybind11","full_name":"jagerman/pybind11","owner":{"login":"jagerman","id":4459524,"avatar_url":"https://avatars0.githubusercontent.com/u/4459524?v=3","gravatar_id":"","url":"https://api.github.com/users/jagerman","html_url":"https://github.com/jagerman","followers_url":"https://api.github.com/users/jagerman/followers","following_url":"https://api.github.com/users/jagerman/following{/other_user}","gists_url":"https://api.github.com/users/jagerman/gists{/gist_id}","starred_url":"https://api.github.com/users/jagerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagerman/subscriptions","organizations_url":"https://api.github.com/users/jagerman/orgs","repos_url":"https://api.github.com/users/jagerman/repos","events_url":"https://api.github.com/users/jagerman/events{/privacy}","received_events_url":"https://api.github.com/users/jagerman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jagerman/pybind11","description":"Seamless operability between C++11 and Python","fork":true,"url":"https://api.github.com/repos/jagerman/pybind11","forks_url":"https://api.github.com/repos/jagerman/pybind11/forks","keys_url":"https://api.github.com/repos/jagerman/pybind11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jagerman/pybind11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jagerman/pybind11/teams","hooks_url":"https://api.github.com/repos/jagerman/pybind11/hooks","issue_events_url":"https://api.github.com/repos/jagerman/pybind11/issues/events{/number}","events_url":"https://api.github.com/repos/jagerman/pybind11/events","assignees_url":"https://api.github.com/repos/jagerman/pybind11/assignees{/user}","branches_url":"https://api.github.com/repos/jagerman/pybind11/branches{/branch}","tags_url":"https://api.github.com/repos/jagerman/pybind11/tags","blobs_url":"https://api.github.com/repos/jagerman/pybind11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jagerman/pybind11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jagerman/pybind11/git/refs{/sha}","trees_url":"https://api.github.com/repos/jagerman/pybind11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jagerman/pybind11/statuses/{sha}","languages_url":"https://api.github.com/repos/jagerman/pybind11/languages","stargazers_url":"https://api.github.com/repos/jagerman/pybind11/stargazers","contributors_url":"https://api.github.com/repos/jagerman/pybind11/contributors","subscribers_url":"https://api.github.com/repos/jagerman/pybind11/subscribers","subscription_url":"https://api.github.com/repos/jagerman/pybind11/subscription","commits_url":"https://api.github.com/repos/jagerman/pybind11/commits{/sha}","git_commits_url":"https://api.github.com/repos/jagerman/pybind11/git/commits{/sha}","comments_url":"https://api.github.com/repos/jagerman/pybind11/comments{/number}","issue_comment_url":"https://api.github.com/repos/jagerman/pybind11/issues/comments{/number}","contents_url":"https://api.github.com/repos/jagerman/pybind11/contents/{+path}","compare_url":"https://api.github.com/repos/jagerman/pybind11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jagerman/pybind11/merges","archive_url":"https://api.github.com/repos/jagerman/pybind11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jagerman/pybind11/downloads","issues_url":"https://api.github.com/repos/jagerman/pybind11/issues{/number}","pulls_url":"https://api.github.com/repos/jagerman/pybind11/pulls{/number}","milestones_url":"https://api.github.com/repos/jagerman/pybind11/milestones{/number}","notifications_url":"https://api.github.com/repos/jagerman/pybind11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jagerman/pybind11/labels{/name}","releases_url":"https://api.github.com/repos/jagerman/pybind11/releases{/id}","deployments_url":"https://api.github.com/repos/jagerman/pybind11/deployments","created_at":"2016-07-03T01:01:55Z","updated_at":"2016-07-03T01:01:56Z","pushed_at":"2017-04-07T20:20:53Z","git_url":"git://github.com/jagerman/pybind11.git","ssh_url":"git@github.com:jagerman/pybind11.git","clone_url":"https://github.com/jagerman/pybind11.git","svn_url":"https://github.com/jagerman/pybind11","homepage":null,"size":2923,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"pybind:master","ref":"master","sha":"db200955b98c27bc79192d9df7c3325380e5fbda","user":{"login":"pybind","id":17565521,"avatar_url":"https://avatars1.githubusercontent.com/u/17565521?v=3","gravatar_id":"","url":"https://api.github.com/users/pybind","html_url":"https://github.com/pybind","followers_url":"https://api.github.com/users/pybind/followers","following_url":"https://api.github.com/users/pybind/following{/other_user}","gists_url":"https://api.github.com/users/pybind/gists{/gist_id}","starred_url":"https://api.github.com/users/pybind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pybind/subscriptions","organizations_url":"https://api.github.com/users/pybind/orgs","repos_url":"https://api.github.com/users/pybind/repos","events_url":"https://api.github.com/users/pybind/events{/privacy}","received_events_url":"https://api.github.com/users/pybind/received_events","type":"Organization","site_admin":false},"repo":{"id":38581626,"name":"pybind11","full_name":"pybind/pybind11","owner":{"login":"pybind","id":17565521,"avatar_url":"https://avatars1.githubusercontent.com/u/17565521?v=3","gravatar_id":"","url":"https://api.github.com/users/pybind","html_url":"https://github.com/pybind","followers_url":"https://api.github.com/users/pybind/followers","following_url":"https://api.github.com/users/pybind/following{/other_user}","gists_url":"https://api.github.com/users/pybind/gists{/gist_id}","starred_url":"https://api.github.com/users/pybind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pybind/subscriptions","organizations_url":"https://api.github.com/users/pybind/orgs","repos_url":"https://api.github.com/users/pybind/repos","events_url":"https://api.github.com/users/pybind/events{/privacy}","received_events_url":"https://api.github.com/users/pybind/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pybind/pybind11","description":"Seamless operability between C++11 and Python","fork":false,"url":"https://api.github.com/repos/pybind/pybind11","forks_url":"https://api.github.com/repos/pybind/pybind11/forks","keys_url":"https://api.github.com/repos/pybind/pybind11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pybind/pybind11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pybind/pybind11/teams","hooks_url":"https://api.github.com/repos/pybind/pybind11/hooks","issue_events_url":"https://api.github.com/repos/pybind/pybind11/issues/events{/number}","events_url":"https://api.github.com/repos/pybind/pybind11/events","assignees_url":"https://api.github.com/repos/pybind/pybind11/assignees{/user}","branches_url":"https://api.github.com/repos/pybind/pybind11/branches{/branch}","tags_url":"https://api.github.com/repos/pybind/pybind11/tags","blobs_url":"https://api.github.com/repos/pybind/pybind11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pybind/pybind11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pybind/pybind11/git/refs{/sha}","trees_url":"https://api.github.com/repos/pybind/pybind11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pybind/pybind11/statuses/{sha}","languages_url":"https://api.github.com/repos/pybind/pybind11/languages","stargazers_url":"https://api.github.com/repos/pybind/pybind11/stargazers","contributors_url":"https://api.github.com/repos/pybind/pybind11/contributors","subscribers_url":"https://api.github.com/repos/pybind/pybind11/subscribers","subscription_url":"https://api.github.com/repos/pybind/pybind11/subscription","commits_url":"https://api.github.com/repos/pybind/pybind11/commits{/sha}","git_commits_url":"https://api.github.com/repos/pybind/pybind11/git/commits{/sha}","comments_url":"https://api.github.com/repos/pybind/pybind11/comments{/number}","issue_comment_url":"https://api.github.com/repos/pybind/pybind11/issues/comments{/number}","contents_url":"https://api.github.com/repos/pybind/pybind11/contents/{+path}","compare_url":"https://api.github.com/repos/pybind/pybind11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pybind/pybind11/merges","archive_url":"https://api.github.com/repos/pybind/pybind11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pybind/pybind11/downloads","issues_url":"https://api.github.com/repos/pybind/pybind11/issues{/number}","pulls_url":"https://api.github.com/repos/pybind/pybind11/pulls{/number}","milestones_url":"https://api.github.com/repos/pybind/pybind11/milestones{/number}","notifications_url":"https://api.github.com/repos/pybind/pybind11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pybind/pybind11/labels{/name}","releases_url":"https://api.github.com/repos/pybind/pybind11/releases{/id}","deployments_url":"https://api.github.com/repos/pybind/pybind11/deployments","created_at":"2015-07-05T19:46:48Z","updated_at":"2017-04-07T03:48:47Z","pushed_at":"2017-04-07T15:21:12Z","git_url":"git://github.com/pybind/pybind11.git","ssh_url":"git@github.com:pybind/pybind11.git","clone_url":"https://github.com/pybind/pybind11.git","svn_url":"https://github.com/pybind/pybind11","homepage":"","size":2586,"stargazers_count":1907,"watchers_count":1907,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":221,"mirror_url":null,"open_issues_count":33,"forks":221,"open_issues":33,"watchers":1907,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pybind/pybind11/pulls/788"},"html":{"href":"https://github.com/pybind/pybind11/pull/788"},"issue":{"href":"https://api.github.com/repos/pybind/pybind11/issues/788"},"comments":{"href":"https://api.github.com/repos/pybind/pybind11/issues/788/comments"},"review_comments":{"href":"https://api.github.com/repos/pybind/pybind11/pulls/788/comments"},"review_comment":{"href":"https://api.github.com/repos/pybind/pybind11/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pybind/pybind11/pulls/788/commits"},"statuses":{"href":"https://api.github.com/repos/pybind/pybind11/statuses/4ca11733fa36cc6d6e754b69de4118b43f70cd11"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":198,"deletions":121,"changed_files":7}}
{"actor":{"display_login":"jagerman"}}