{"action":"created","issue":{"url":"https://api.github.com/repos/brython-dev/brython/issues/350","labels_url":"https://api.github.com/repos/brython-dev/brython/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/brython-dev/brython/issues/350/comments","events_url":"https://api.github.com/repos/brython-dev/brython/issues/350/events","html_url":"https://github.com/brython-dev/brython/issues/350","id":122614373,"number":350,"title":"`float(\"-int\")` or `float(\"-infinity\")` raises an error","user":{"login":"kikocorreoso","id":1939575,"avatar_url":"https://avatars.githubusercontent.com/u/1939575?v=3","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"kikocorreoso","id":1939575,"avatar_url":"https://avatars.githubusercontent.com/u/1939575?v=3","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-12-16T22:06:56Z","updated_at":"2015-12-16T22:24:34Z","closed_at":"2015-12-16T22:24:34Z","body":"The following:\r\n\r\n```python\r\na = float(\"-inf\") # or float(\"-infinity\")\r\n```\r\nraises the following error:\r\n```javascript\r\nInternal Javascript error: TypeError: $args[(nb_pos - 1)] is undefined\r\n  module 'editor' line 97\r\n        exec(src, ns)\r\n<completed in  17.00 ms>\r\n```\r\nIt should return\r\n\r\n`-int`"},"comment":{"url":"https://api.github.com/repos/brython-dev/brython/issues/comments/165273070","html_url":"https://github.com/brython-dev/brython/issues/350#issuecomment-165273070","issue_url":"https://api.github.com/repos/brython-dev/brython/issues/350","id":165273070,"user":{"login":"kikocorreoso","id":1939575,"avatar_url":"https://avatars.githubusercontent.com/u/1939575?v=3","gravatar_id":"","url":"https://api.github.com/users/kikocorreoso","html_url":"https://github.com/kikocorreoso","followers_url":"https://api.github.com/users/kikocorreoso/followers","following_url":"https://api.github.com/users/kikocorreoso/following{/other_user}","gists_url":"https://api.github.com/users/kikocorreoso/gists{/gist_id}","starred_url":"https://api.github.com/users/kikocorreoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kikocorreoso/subscriptions","organizations_url":"https://api.github.com/users/kikocorreoso/orgs","repos_url":"https://api.github.com/users/kikocorreoso/repos","events_url":"https://api.github.com/users/kikocorreoso/events{/privacy}","received_events_url":"https://api.github.com/users/kikocorreoso/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T22:24:34Z","updated_at":"2015-12-16T22:24:34Z","body":"It seems PR #351 fixes the issue but a test is not passing:\r\n\r\nhttps://github.com/brython-dev/brython/blob/master/www/tests/issues.py#L716\r\n\r\nIt seems related with `long_int`.\r\n\r\nI open a new issue."}}