{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/8866","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/8866/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8866/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/8866/events","html_url":"https://github.com/numpy/numpy/issues/8866","id":218094605,"number":8866,"title":"A new tremandous BUG in Advanced Indexing?","user":{"login":"Levstyle","id":16695763,"avatar_url":"https://avatars0.githubusercontent.com/u/16695763?v=3","gravatar_id":"","url":"https://api.github.com/users/Levstyle","html_url":"https://github.com/Levstyle","followers_url":"https://api.github.com/users/Levstyle/followers","following_url":"https://api.github.com/users/Levstyle/following{/other_user}","gists_url":"https://api.github.com/users/Levstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/Levstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Levstyle/subscriptions","organizations_url":"https://api.github.com/users/Levstyle/orgs","repos_url":"https://api.github.com/users/Levstyle/repos","events_url":"https://api.github.com/users/Levstyle/events{/privacy}","received_events_url":"https://api.github.com/users/Levstyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-30T06:35:33Z","updated_at":"2017-03-30T06:50:05Z","closed_at":null,"body":"# This is a BUG\r\n``` python\r\ntrain = np.zeros([26,26])\r\ntrain2 = np.zeros([26,26])\r\ntmp = [1,2,3,4,5,6,1,2,3,4,5,6]\r\ntrain[tmp[0:-1], tmp[1:]] += 1\r\nfor i in range(len(tmp)-1):\r\n    train2[tmp[i], tmp[i+1]] += 1\r\nprint(np.sum(train - train2))\r\n```\r\n**the output is -5**\r\nI find that `train` is not equal to `train2` when there are some duplicate tuples in `tmp`. Is there something wrong in numpy slicing."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/290318542","html_url":"https://github.com/numpy/numpy/issues/8866#issuecomment-290318542","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8866","id":290318542,"user":{"login":"Levstyle","id":16695763,"avatar_url":"https://avatars0.githubusercontent.com/u/16695763?v=3","gravatar_id":"","url":"https://api.github.com/users/Levstyle","html_url":"https://github.com/Levstyle","followers_url":"https://api.github.com/users/Levstyle/followers","following_url":"https://api.github.com/users/Levstyle/following{/other_user}","gists_url":"https://api.github.com/users/Levstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/Levstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Levstyle/subscriptions","organizations_url":"https://api.github.com/users/Levstyle/orgs","repos_url":"https://api.github.com/users/Levstyle/repos","events_url":"https://api.github.com/users/Levstyle/events{/privacy}","received_events_url":"https://api.github.com/users/Levstyle/received_events","type":"User","site_admin":false},"created_at":"2017-03-30T06:50:05Z","updated_at":"2017-03-30T06:50:05Z","body":"Thanks! "}}
{"actor":{"display_login":"Levstyle"}}