{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/7891","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/7891/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/7891/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/7891/events","html_url":"https://github.com/numpy/numpy/issues/7891","id":169127584,"number":7891,"title":"Confusing VisibleDeprecationWarning when multiplying a numpy.float64 with None","user":{"login":"gomyhr","id":2770270,"avatar_url":"https://avatars.githubusercontent.com/u/2770270?v=3","gravatar_id":"","url":"https://api.github.com/users/gomyhr","html_url":"https://github.com/gomyhr","followers_url":"https://api.github.com/users/gomyhr/followers","following_url":"https://api.github.com/users/gomyhr/following{/other_user}","gists_url":"https://api.github.com/users/gomyhr/gists{/gist_id}","starred_url":"https://api.github.com/users/gomyhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gomyhr/subscriptions","organizations_url":"https://api.github.com/users/gomyhr/orgs","repos_url":"https://api.github.com/users/gomyhr/repos","events_url":"https://api.github.com/users/gomyhr/events{/privacy}","received_events_url":"https://api.github.com/users/gomyhr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-03T13:10:35Z","updated_at":"2016-08-04T06:02:28Z","closed_at":null,"body":"When multiplying a numpy.float64 by None (by mistake), I get a warning which seems out of place:\r\nVisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future\r\n\r\nf = np.float64(0.63)\r\nx = f * None\r\n\r\ntriggers the warning, whereas\r\n\r\nf = np.float(0.63)\r\nx = f * None\r\n\r\ndoes not (since it uses native float type).\r\n\r\nUsing numpy 1.11.1 from anaconda on 64-bit linux."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/237460446","html_url":"https://github.com/numpy/numpy/issues/7891#issuecomment-237460446","issue_url":"https://api.github.com/repos/numpy/numpy/issues/7891","id":237460446,"user":{"login":"gomyhr","id":2770270,"avatar_url":"https://avatars.githubusercontent.com/u/2770270?v=3","gravatar_id":"","url":"https://api.github.com/users/gomyhr","html_url":"https://github.com/gomyhr","followers_url":"https://api.github.com/users/gomyhr/followers","following_url":"https://api.github.com/users/gomyhr/following{/other_user}","gists_url":"https://api.github.com/users/gomyhr/gists{/gist_id}","starred_url":"https://api.github.com/users/gomyhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gomyhr/subscriptions","organizations_url":"https://api.github.com/users/gomyhr/orgs","repos_url":"https://api.github.com/users/gomyhr/repos","events_url":"https://api.github.com/users/gomyhr/events{/privacy}","received_events_url":"https://api.github.com/users/gomyhr/received_events","type":"User","site_admin":false},"created_at":"2016-08-04T06:02:28Z","updated_at":"2016-08-04T06:02:28Z","body":"Yes, the TypeError is the expected behaviour. It is the warning before it that is confusing.\r\n\r\nAnd although I was confused at first when the warning was issued only once (when trying to trigger it), the second example does not issue a warning in any case."}}
{"actor":{"display_login":"gomyhr"}}