{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/9251","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/9251/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/9251/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/9251/events","html_url":"https://github.com/numpy/numpy/issues/9251","id":235857967,"number":9251,"title":"`np.diff` is broken for boolean ndarrays in 1.13.0","user":{"login":"soupault","id":1315589,"avatar_url":"https://avatars3.githubusercontent.com/u/1315589?v=3","gravatar_id":"","url":"https://api.github.com/users/soupault","html_url":"https://github.com/soupault","followers_url":"https://api.github.com/users/soupault/followers","following_url":"https://api.github.com/users/soupault/following{/other_user}","gists_url":"https://api.github.com/users/soupault/gists{/gist_id}","starred_url":"https://api.github.com/users/soupault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupault/subscriptions","organizations_url":"https://api.github.com/users/soupault/orgs","repos_url":"https://api.github.com/users/soupault/repos","events_url":"https://api.github.com/users/soupault/events{/privacy}","received_events_url":"https://api.github.com/users/soupault/received_events","type":"User","site_admin":false},"labels":[{"id":6394859,"url":"https://api.github.com/repos/numpy/numpy/labels/05%20-%20Regression","name":"05 - Regression","color":"fef2c0","default":false},{"id":16917082,"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.lib","name":"component: numpy.lib","color":"009800","default":false},{"id":6360059,"url":"https://api.github.com/repos/numpy/numpy/labels/Easy%20Fix","name":"Easy Fix","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/numpy/numpy/milestones/49","html_url":"https://github.com/numpy/numpy/milestone/49","labels_url":"https://api.github.com/repos/numpy/numpy/milestones/49/labels","id":2572122,"number":49,"title":"1.13.1 release","description":"","creator":{"login":"charris","id":77272,"avatar_url":"https://avatars0.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":6,"closed_issues":1,"state":"open","created_at":"2017-06-08T16:47:01Z","updated_at":"2017-06-14T13:57:08Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2017-06-14T12:09:55Z","updated_at":"2017-06-15T00:11:53Z","closed_at":null,"body":"Should modify the docstring accordingly, raise a meaningful error, or (preferably) make it work by hidding some logic under the hood.\r\n\r\nTraceback:\r\n```\r\nIn [11]: x = np.array([[True, True], [False, False]])\r\n\r\nIn [12]: np.diff(x)\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-12-59225436601c> in <module>()\r\n----> 1 np.diff(x)\r\n\r\n/usr/lib/python3.6/site-packages/numpy/lib/function_base.py in diff(a, n, axis)\r\n   1924         return diff(a[slice1]-a[slice2], n-1, axis=axis)\r\n   1925     else:\r\n-> 1926         return a[slice1]-a[slice2]\r\n   1927 \r\n   1928 \r\n\r\nTypeError: numpy boolean subtract, the `-` operator, is deprecated, use the bitwise_xor, the `^` operator, or the logical_xor function instead.\r\n\r\nIn [13]: np.__version__\r\nOut[13]: '1.13.0'\r\n```\r\n\r\nxref https://github.com/scikit-image/scikit-image/issues/2681"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/308592614","html_url":"https://github.com/numpy/numpy/issues/9251#issuecomment-308592614","issue_url":"https://api.github.com/repos/numpy/numpy/issues/9251","id":308592614,"user":{"login":"charris","id":77272,"avatar_url":"https://avatars0.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},"created_at":"2017-06-15T00:11:53Z","updated_at":"2017-06-15T00:11:53Z","body":"Wrong address, it has moved ;) numpy-discussion@python.org ."}}
{"actor":{"display_login":"charris"}}