{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/5711","labels_url":"https://api.github.com/repos/numpy/numpy/issues/5711/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/5711/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/5711/events","html_url":"https://github.com/numpy/numpy/issues/5711","id":63835985,"number":5711,"title":"issubdtype(double, bool)","user":{"login":"ahojnnes","id":134307,"avatar_url":"https://avatars.githubusercontent.com/u/134307?v=3","gravatar_id":"","url":"https://api.github.com/users/ahojnnes","html_url":"https://github.com/ahojnnes","followers_url":"https://api.github.com/users/ahojnnes/followers","following_url":"https://api.github.com/users/ahojnnes/following{/other_user}","gists_url":"https://api.github.com/users/ahojnnes/gists{/gist_id}","starred_url":"https://api.github.com/users/ahojnnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahojnnes/subscriptions","organizations_url":"https://api.github.com/users/ahojnnes/orgs","repos_url":"https://api.github.com/users/ahojnnes/repos","events_url":"https://api.github.com/users/ahojnnes/events{/privacy}","received_events_url":"https://api.github.com/users/ahojnnes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-23T21:22:28Z","updated_at":"2015-03-24T08:33:08Z","closed_at":null,"body":"Maybe I am missing something, but is this correct?\r\n\r\n```np.issubdtype(np.double, np.bool) => True```\r\n\r\nAt the very least, this is confusing."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/85397014","html_url":"https://github.com/numpy/numpy/issues/5711#issuecomment-85397014","issue_url":"https://api.github.com/repos/numpy/numpy/issues/5711","id":85397014,"user":{"login":"pv","id":35046,"avatar_url":"https://avatars.githubusercontent.com/u/35046?v=3","gravatar_id":"","url":"https://api.github.com/users/pv","html_url":"https://github.com/pv","followers_url":"https://api.github.com/users/pv/followers","following_url":"https://api.github.com/users/pv/following{/other_user}","gists_url":"https://api.github.com/users/pv/gists{/gist_id}","starred_url":"https://api.github.com/users/pv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pv/subscriptions","organizations_url":"https://api.github.com/users/pv/orgs","repos_url":"https://api.github.com/users/pv/repos","events_url":"https://api.github.com/users/pv/events{/privacy}","received_events_url":"https://api.github.com/users/pv/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T08:33:08Z","updated_at":"2015-03-24T08:33:08Z","body":"Note that the code in `np.issubdtype` contains some weird stuff:\r\n```\r\n    if issubclass_(arg2, generic):\r\n        return issubclass(dtype(arg1).type, arg2)\r\n    mro = dtype(arg2).type.mro()\r\n    if len(mro) > 1:\r\n        val = mro[1]\r\n    else:\r\n        val = mro[0]\r\n    return issubclass(dtype(arg1).type, val)\r\n```\r\nFor example\r\n```\r\n>>> np.issubdtype(np.float32, np.dtype(float))\r\nTrue\r\n```"}}