{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7648","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7648/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7648/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7648/events","html_url":"https://github.com/numpy/numpy/issues/7648","id":155643621,"number":7648,"title":"Behavior of negative exponentiation inconsistent between integer types","user":{"login":"jakevdp","id":781659,"avatar_url":"https://avatars.githubusercontent.com/u/781659?v=3","gravatar_id":"","url":"https://api.github.com/users/jakevdp","html_url":"https://github.com/jakevdp","followers_url":"https://api.github.com/users/jakevdp/followers","following_url":"https://api.github.com/users/jakevdp/following{/other_user}","gists_url":"https://api.github.com/users/jakevdp/gists{/gist_id}","starred_url":"https://api.github.com/users/jakevdp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakevdp/subscriptions","organizations_url":"https://api.github.com/users/jakevdp/orgs","repos_url":"https://api.github.com/users/jakevdp/repos","events_url":"https://api.github.com/users/jakevdp/events{/privacy}","received_events_url":"https://api.github.com/users/jakevdp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-19T02:48:18Z","updated_at":"2016-05-19T16:31:20Z","closed_at":null,"body":"```python\r\n>>> np.int64(2) ** -2\r\n0.25\r\n>>> np.int32(2) ** -2\r\n0\r\n```\r\n\r\nTested on OSX 10.8.5 w/ numpy 1.10 on both Python 2.7 and 3.5."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/220379825","html_url":"https://github.com/numpy/numpy/issues/7648#issuecomment-220379825","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7648","id":220379825,"user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T16:31:19Z","updated_at":"2016-05-19T16:31:19Z","body":"Just in case (have to run): Note that the array case should also keep working:\r\n```\r\nnp.ones((2,), dtype=int) ** -2\r\n# array([1, 1])\r\n```\r\n"}}