{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6708","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6708/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6708/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6708/events","html_url":"https://github.com/numpy/numpy/issues/6708","id":117941682,"number":6708,"title":"array constructor accepts instance of dtype instead of dtype for the \"dtype\" kwarg","user":{"login":"anntzer","id":1322974,"avatar_url":"https://avatars.githubusercontent.com/u/1322974?v=3","gravatar_id":"","url":"https://api.github.com/users/anntzer","html_url":"https://github.com/anntzer","followers_url":"https://api.github.com/users/anntzer/followers","following_url":"https://api.github.com/users/anntzer/following{/other_user}","gists_url":"https://api.github.com/users/anntzer/gists{/gist_id}","starred_url":"https://api.github.com/users/anntzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anntzer/subscriptions","organizations_url":"https://api.github.com/users/anntzer/orgs","repos_url":"https://api.github.com/users/anntzer/repos","events_url":"https://api.github.com/users/anntzer/events{/privacy}","received_events_url":"https://api.github.com/users/anntzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/in%20progress","name":"in progress","color":"fef2c0"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Needs%20decision","name":"Needs decision","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T00:44:59Z","updated_at":"2015-11-27T09:28:03Z","closed_at":null,"body":"```\r\nIn [1]: np.array(1, np.int64(1))\r\nOut[1]: array(1)\r\n\r\nIn [2]: np.array(1, np.float64(1))\r\nOut[2]: array(1.0)\r\n```\r\nSame with `empty`, `zeros`, etc.\r\nThis is IMO a good place for a bug to hide.  Or perhaps there has always been this behavior?\r\nPython 3.5, numpy 1.10.1."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/160089372","html_url":"https://github.com/numpy/numpy/issues/6708#issuecomment-160089372","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6708","id":160089372,"user":{"login":"seberg","id":61977,"avatar_url":"https://avatars.githubusercontent.com/u/61977?v=3","gravatar_id":"","url":"https://api.github.com/users/seberg","html_url":"https://github.com/seberg","followers_url":"https://api.github.com/users/seberg/followers","following_url":"https://api.github.com/users/seberg/following{/other_user}","gists_url":"https://api.github.com/users/seberg/gists{/gist_id}","starred_url":"https://api.github.com/users/seberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seberg/subscriptions","organizations_url":"https://api.github.com/users/seberg/orgs","repos_url":"https://api.github.com/users/seberg/repos","events_url":"https://api.github.com/users/seberg/events{/privacy}","received_events_url":"https://api.github.com/users/seberg/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T09:28:03Z","updated_at":"2015-11-27T09:28:03Z","body":"True, seems weird to me as well, would be +1 for deprecation (modulo weird thiings that might crop up during testing). @anntzer want to have a look? This seems to hide in the general dtype conversion functions, allowing numpy scalars to be converted:\r\n```\r\nIn [2]: np.dtype(np.float_(1))\r\nOut[2]: dtype('float64')\r\n```"}}