{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7536","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7536/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7536/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7536/events","html_url":"https://github.com/numpy/numpy/pull/7536","id":147240214,"number":7536,"title":"MAINT: Always use PyCapsule instead of PyCObject in mtrand.pyx","user":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.random","name":"component: numpy.random","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/numpy/numpy/milestones/41","html_url":"https://github.com/numpy/numpy/milestones/1.12.0%20release","labels_url":"https://api.github.com/repos/numpy/numpy/milestones/41/labels","id":1503092,"number":41,"title":"1.12.0 release","description":"Tag for the Numpy 1.12.0 release.","creator":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"open_issues":32,"closed_issues":12,"state":"open","created_at":"2016-01-12T20:39:09Z","updated_at":"2016-04-10T16:52:55Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-04-10T16:52:55Z","updated_at":"2016-04-10T18:37:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/7536","html_url":"https://github.com/numpy/numpy/pull/7536","diff_url":"https://github.com/numpy/numpy/pull/7536.diff","patch_url":"https://github.com/numpy/numpy/pull/7536.patch"},"body":"Python 2.7 has a backport of PyCapsule so we no longer need to support PyCObject. This PR makes that change and removes the no longer needed mt_compat.h file.\r\n\r\nSome Deprecation warning are also hidden in the `numpy/random/tests`."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/208041829","html_url":"https://github.com/numpy/numpy/pull/7536#issuecomment-208041829","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7536","id":208041829,"user":{"login":"njsmith","id":609896,"avatar_url":"https://avatars.githubusercontent.com/u/609896?v=3","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T18:37:31Z","updated_at":"2016-04-10T18:37:31Z","body":"Looks fine to me. I'm a little puzzled about why we're using PyCapsule at all here... I guess just because it's easier to have a dict-of-Python-callables than to have a dict-of-cdef-function-pointers? Doesn't matter much I guess."}}