{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7510","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7510/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7510/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7510/events","html_url":"https://github.com/numpy/numpy/issues/7510","id":145994730,"number":7510,"title":"np.power(0, -1) behaviour","user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/11%20-%20Bug","name":"11 - Bug","color":"fef2c0"},{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","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":55,"closed_issues":16,"state":"open","created_at":"2016-01-12T20:39:09Z","updated_at":"2016-04-26T01:56:15Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2016-04-05T13:49:28Z","updated_at":"2016-04-28T18:44:53Z","closed_at":null,"body":"This gives 1 as expected in numpy 1.11 but 0 in master. The problem happens only for ints. For floats it works fine, for example `np.power(0.0, 0)` is 1 in master.\r\n\r\ngit bisect tells me this is the commit e7ddb392728260801a8ae39ef36b0bbf3abe5604 where things started to go wrong.\r\n\r\nping @ewmoore, @jaimefrio."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/215524423","html_url":"https://github.com/numpy/numpy/issues/7510#issuecomment-215524423","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7510","id":215524423,"user":{"login":"ewmoore","id":2314641,"avatar_url":"https://avatars.githubusercontent.com/u/2314641?v=3","gravatar_id":"","url":"https://api.github.com/users/ewmoore","html_url":"https://github.com/ewmoore","followers_url":"https://api.github.com/users/ewmoore/followers","following_url":"https://api.github.com/users/ewmoore/following{/other_user}","gists_url":"https://api.github.com/users/ewmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/ewmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewmoore/subscriptions","organizations_url":"https://api.github.com/users/ewmoore/orgs","repos_url":"https://api.github.com/users/ewmoore/repos","events_url":"https://api.github.com/users/ewmoore/events{/privacy}","received_events_url":"https://api.github.com/users/ewmoore/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T18:44:53Z","updated_at":"2016-04-28T18:44:53Z","body":"Look at [numpy/core/src/umath/loops.c.src](https://github.com/numpy/numpy/blob/master/numpy/core/src/umath/loops.c.src#L913).  You'll need to use the `NPY_ALLOW_C_API` macros to reacquire the GIL before raising the error.  There is an example of doing this in loops.c.src on line 1153."}}