{"action":"created","issue":{"url":"https://api.github.com/repos/dropbox/pyston/issues/1079","labels_url":"https://api.github.com/repos/dropbox/pyston/issues/1079/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/pyston/issues/1079/comments","events_url":"https://api.github.com/repos/dropbox/pyston/issues/1079/events","html_url":"https://github.com/dropbox/pyston/pull/1079","id":129534502,"number":1079,"title":"implement tb_lineno of Traceback","user":{"login":"corona10","id":5110323,"avatar_url":"https://avatars.githubusercontent.com/u/5110323?v=3","gravatar_id":"","url":"https://api.github.com/users/corona10","html_url":"https://github.com/corona10","followers_url":"https://api.github.com/users/corona10/followers","following_url":"https://api.github.com/users/corona10/following{/other_user}","gists_url":"https://api.github.com/users/corona10/gists{/gist_id}","starred_url":"https://api.github.com/users/corona10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corona10/subscriptions","organizations_url":"https://api.github.com/users/corona10/orgs","repos_url":"https://api.github.com/users/corona10/repos","events_url":"https://api.github.com/users/corona10/events{/privacy}","received_events_url":"https://api.github.com/users/corona10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-28T18:23:52Z","updated_at":"2016-01-28T23:56:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dropbox/pyston/pulls/1079","html_url":"https://github.com/dropbox/pyston/pull/1079","diff_url":"https://github.com/dropbox/pyston/pull/1079.diff","patch_url":"https://github.com/dropbox/pyston/pull/1079.patch"},"body":"I implements `tb_lineno` but I don't know this is right implementatation.\r\nI know `tb_linno` should assigend by frame's `f_lineno` but this implementation looks different.\r\nI check it print right `tb_lineno` on below code after this patch...\r\n\r\n```python\r\nimport sys, traceback\r\n\r\ndef lumberjack():\r\n    bright_side_of_death()\r\n\r\ndef bright_side_of_death():\r\n    return tuple()[0]\r\n\r\ntry:\r\n    lumberjack()\r\nexcept IndexError:\r\n    exc_type, exc_value, exc_traceback = sys.exc_info()\r\n    print \"*** print_tb:\"\r\n    traceback.print_tb(exc_traceback, limit=1, file=sys.stdout)\r\n    print \"*** print_exception:\"\r\n    traceback.print_exception(exc_type, exc_value, exc_traceback,\r\n                              limit=2, file=sys.stdout)\r\n    print \"*** print_exc:\"\r\n    traceback.print_exc()\r\n    print \"*** format_exc, first and last line:\"\r\n    formatted_lines = traceback.format_exc().splitlines()\r\n    print formatted_lines[0]\r\n    print formatted_lines[-1]\r\n    print \"*** format_exception:\"\r\n    print repr(traceback.format_exception(exc_type, exc_value,\r\n                                          exc_traceback))\r\n    print \"*** extract_tb:\"\r\n    print repr(traceback.extract_tb(exc_traceback))\r\n    print \"*** format_tb:\"\r\n    print repr(traceback.format_tb(exc_traceback))\r\n    print \"*** tb_lineno:\", exc_traceback.tb_lineno\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dropbox/pyston/issues/comments/176487337","html_url":"https://github.com/dropbox/pyston/pull/1079#issuecomment-176487337","issue_url":"https://api.github.com/repos/dropbox/pyston/issues/1079","id":176487337,"user":{"login":"corona10","id":5110323,"avatar_url":"https://avatars.githubusercontent.com/u/5110323?v=3","gravatar_id":"","url":"https://api.github.com/users/corona10","html_url":"https://github.com/corona10","followers_url":"https://api.github.com/users/corona10/followers","following_url":"https://api.github.com/users/corona10/following{/other_user}","gists_url":"https://api.github.com/users/corona10/gists{/gist_id}","starred_url":"https://api.github.com/users/corona10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corona10/subscriptions","organizations_url":"https://api.github.com/users/corona10/orgs","repos_url":"https://api.github.com/users/corona10/repos","events_url":"https://api.github.com/users/corona10/events{/privacy}","received_events_url":"https://api.github.com/users/corona10/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T23:56:58Z","updated_at":"2016-01-28T23:56:58Z","body":"@undingen Thanks, I added test. But I don't know it will be good or not to be merged mine if you 're already make patch for this. :-)"}}