{"action":"created","issue":{"url":"https://api.github.com/repos/pybind/pybind11/issues/472","repository_url":"https://api.github.com/repos/pybind/pybind11","labels_url":"https://api.github.com/repos/pybind/pybind11/issues/472/labels{/name}","comments_url":"https://api.github.com/repos/pybind/pybind11/issues/472/comments","events_url":"https://api.github.com/repos/pybind/pybind11/issues/472/events","html_url":"https://github.com/pybind/pybind11/pull/472","id":186329753,"number":472,"title":"Support for sharing dtypes across extensions + public shared data API","user":{"login":"aldanor","id":2418513,"avatar_url":"https://avatars.githubusercontent.com/u/2418513?v=3","gravatar_id":"","url":"https://api.github.com/users/aldanor","html_url":"https://github.com/aldanor","followers_url":"https://api.github.com/users/aldanor/followers","following_url":"https://api.github.com/users/aldanor/following{/other_user}","gists_url":"https://api.github.com/users/aldanor/gists{/gist_id}","starred_url":"https://api.github.com/users/aldanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldanor/subscriptions","organizations_url":"https://api.github.com/users/aldanor/orgs","repos_url":"https://api.github.com/users/aldanor/repos","events_url":"https://api.github.com/users/aldanor/events{/privacy}","received_events_url":"https://api.github.com/users/aldanor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-10-31T16:26:19Z","updated_at":"2016-10-31T19:24:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pybind/pybind11/pulls/472","html_url":"https://github.com/pybind/pybind11/pull/472","diff_url":"https://github.com/pybind/pybind11/pull/472.diff","patch_url":"https://github.com/pybind/pybind11/pull/472.patch"},"body":"This PR adds support for sharing registered dtypes across multiple extensions modules which previously may or may not have worked depending on the compiler, optimization settings, linker settings etc.\r\n\r\nThe dtypes are shared via the same capsule where the internals are stored. As part of this PR, a few functions are added to the public API so the \"shared\" part of the capsule could be accessed without breaking backwards compatibility (see `get_shared_data()`, `set_shared_data()`).\r\n\r\nI've also moved out `register_dtype()` outside of `npy_format_descriptor<>` template, this avoids considerable code bloat when registering many dtypes.\r\n\r\n(Original issue: #468)"},"comment":{"url":"https://api.github.com/repos/pybind/pybind11/issues/comments/257393937","html_url":"https://github.com/pybind/pybind11/pull/472#issuecomment-257393937","issue_url":"https://api.github.com/repos/pybind/pybind11/issues/472","id":257393937,"user":{"login":"aldanor","id":2418513,"avatar_url":"https://avatars.githubusercontent.com/u/2418513?v=3","gravatar_id":"","url":"https://api.github.com/users/aldanor","html_url":"https://github.com/aldanor","followers_url":"https://api.github.com/users/aldanor/followers","following_url":"https://api.github.com/users/aldanor/following{/other_user}","gists_url":"https://api.github.com/users/aldanor/gists{/gist_id}","starred_url":"https://api.github.com/users/aldanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldanor/subscriptions","organizations_url":"https://api.github.com/users/aldanor/orgs","repos_url":"https://api.github.com/users/aldanor/repos","events_url":"https://api.github.com/users/aldanor/events{/privacy}","received_events_url":"https://api.github.com/users/aldanor/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T19:24:02Z","updated_at":"2016-10-31T19:24:02Z","body":"(typo in the example above, fixed)"}}
{"actor":{"display_login":"aldanor"}}