{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11086","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11086/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11086/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11086/events","html_url":"https://github.com/sympy/sympy/issues/11086","id":153593702,"number":11086,"title":"numpy's int64 is automatically converted to float","user":{"login":"Pastafarianist","id":1315874,"avatar_url":"https://avatars.githubusercontent.com/u/1315874?v=3","gravatar_id":"","url":"https://api.github.com/users/Pastafarianist","html_url":"https://github.com/Pastafarianist","followers_url":"https://api.github.com/users/Pastafarianist/followers","following_url":"https://api.github.com/users/Pastafarianist/following{/other_user}","gists_url":"https://api.github.com/users/Pastafarianist/gists{/gist_id}","starred_url":"https://api.github.com/users/Pastafarianist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pastafarianist/subscriptions","organizations_url":"https://api.github.com/users/Pastafarianist/orgs","repos_url":"https://api.github.com/users/Pastafarianist/repos","events_url":"https://api.github.com/users/Pastafarianist/events{/privacy}","received_events_url":"https://api.github.com/users/Pastafarianist/received_events","type":"User","site_admin":false},"labels":[{"id":200856981,"url":"https://api.github.com/repos/sympy/sympy/labels/core.sympify","name":"core.sympify","color":"0000FF","default":false},{"id":75782144,"url":"https://api.github.com/repos/sympy/sympy/labels/Easy%20to%20Fix","name":"Easy to Fix","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-05-07T13:11:33Z","updated_at":"2017-01-21T08:35:39Z","closed_at":null,"body":"``` python\nimport numpy as np\nimport sympy as sp\n\nx = sp.symbols('x')\nprint(x * 1)\nprint(x * np.int64(1))\n```\n\nOutput:\n\n```\nx\n1.0*x\n```\n\nI think it is unexpected that `int64` is cast to `float`. Perhaps it should be cast to `int`?\n"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/274248592","html_url":"https://github.com/sympy/sympy/issues/11086#issuecomment-274248592","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11086","id":274248592,"user":{"login":"luukko","id":340930,"avatar_url":"https://avatars.githubusercontent.com/u/340930?v=3","gravatar_id":"","url":"https://api.github.com/users/luukko","html_url":"https://github.com/luukko","followers_url":"https://api.github.com/users/luukko/followers","following_url":"https://api.github.com/users/luukko/following{/other_user}","gists_url":"https://api.github.com/users/luukko/gists{/gist_id}","starred_url":"https://api.github.com/users/luukko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luukko/subscriptions","organizations_url":"https://api.github.com/users/luukko/orgs","repos_url":"https://api.github.com/users/luukko/repos","events_url":"https://api.github.com/users/luukko/events{/privacy}","received_events_url":"https://api.github.com/users/luukko/received_events","type":"User","site_admin":false},"created_at":"2017-01-21T08:35:39Z","updated_at":"2017-01-21T08:35:39Z","body":"Let's hope so. This was a nasty bug to track down because of course everything works in unit tests with actual integer constants... Bugs like this make me think maybe duck typing is not so great ater all :wink:. Thanks for the pull request @ArifAhmed1995!"}}
{"actor":{"display_login":"luukko"}}