{"action":"created","issue":{"url":"https://api.github.com/repos/numba/numba/issues/685","labels_url":"https://api.github.com/repos/numba/numba/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/numba/numba/issues/685/comments","events_url":"https://api.github.com/repos/numba/numba/issues/685/events","html_url":"https://github.com/numba/numba/issues/685","id":39761822,"number":685,"title":"int() doesn't support booleans","user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-08-07T19:53:40Z","updated_at":"2016-01-13T17:25:01Z","closed_at":"2016-01-13T17:25:01Z","body":"```\r\n>>> def f(x): return int(x)\r\n... \r\n>>> g = jit('int64(boolean)', nopython=True)(f)\r\nTraceback (most recent call last):\r\n  File \"/home/antoine/numba/numba/typeinfer.py\", line 107, in propagate\r\n    constrain(context, typevars)\r\n  File \"/home/antoine/numba/numba/typeinfer.py\", line 222, in __call__\r\n    self.resolve(context, typevars, fnty)\r\n  File \"/home/antoine/numba/numba/typeinfer.py\", line 231, in resolve\r\n    sig = context.resolve_function_type(fnty, args, ())\r\n  File \"/home/antoine/numba/numba/typing/context.py\", line 53, in resolve_function_type\r\n    return func.template(self).apply(args, kws)\r\n  File \"/home/antoine/numba/numba/typing/templates.py\", line 196, in apply\r\n    sig = generic(args, kws)\r\n  File \"/home/antoine/numba/numba/typing/builtins.py\", line 683, in generic\r\n    raise TypeError(\"int() only support for numbers\")\r\nTypeError: int() only support for numbers\r\n```"},"comment":{"url":"https://api.github.com/repos/numba/numba/issues/comments/171371164","html_url":"https://github.com/numba/numba/issues/685#issuecomment-171371164","issue_url":"https://api.github.com/repos/numba/numba/issues/685","id":171371164,"user":{"login":"pitrou","id":1721820,"avatar_url":"https://avatars.githubusercontent.com/u/1721820?v=3","gravatar_id":"","url":"https://api.github.com/users/pitrou","html_url":"https://github.com/pitrou","followers_url":"https://api.github.com/users/pitrou/followers","following_url":"https://api.github.com/users/pitrou/following{/other_user}","gists_url":"https://api.github.com/users/pitrou/gists{/gist_id}","starred_url":"https://api.github.com/users/pitrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pitrou/subscriptions","organizations_url":"https://api.github.com/users/pitrou/orgs","repos_url":"https://api.github.com/users/pitrou/repos","events_url":"https://api.github.com/users/pitrou/events{/privacy}","received_events_url":"https://api.github.com/users/pitrou/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T17:25:01Z","updated_at":"2016-01-13T17:25:01Z","body":"This now works properly, closing."}}