{"action":"created","issue":{"url":"https://api.github.com/repos/python-trio/trio/issues/285","repository_url":"https://api.github.com/repos/python-trio/trio","labels_url":"https://api.github.com/repos/python-trio/trio/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/python-trio/trio/issues/285/comments","events_url":"https://api.github.com/repos/python-trio/trio/issues/285/events","html_url":"https://github.com/python-trio/trio/issues/285","id":249994644,"number":285,"title":"It should be possible to get a traceback out of a cancel scope","user":{"login":"njsmith","id":609896,"avatar_url":"https://avatars0.githubusercontent.com/u/609896?v=4","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"labels":[{"id":611722171,"url":"https://api.github.com/repos/python-trio/trio/labels/pytest-trio%20relevant","name":"pytest-trio relevant","color":"c5def5","default":false},{"id":537057261,"url":"https://api.github.com/repos/python-trio/trio/labels/user%20happiness","name":"user happiness","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-14T10:41:30Z","updated_at":"2017-11-08T21:39:06Z","closed_at":null,"author_association":"OWNER","body":"With `fail_after`, it's a bit annoying that it can't show you where the block was cancelled. (The traceback just starts at the end of the scope.)\r\n\r\nThis will be a problem in particular for test timeouts. (Well, they probably won't use `fail_after`, but they'll have the same problem.)\r\n\r\nI don't think we can capture the exceptions in cancel scope objects by default, because we don't want to pin the stacks in memory.\r\n\r\nWe could have a flag that tells it to save caught exceptions, though. Or try to do something clever with catching them ourselves inside the scope, but that's basically the same thing from the user point of view, and the cancel scope already knows how to reliably catch its own exceptions."},"comment":{"url":"https://api.github.com/repos/python-trio/trio/issues/comments/342968922","html_url":"https://github.com/python-trio/trio/issues/285#issuecomment-342968922","issue_url":"https://api.github.com/repos/python-trio/trio/issues/285","id":342968922,"user":{"login":"njsmith","id":609896,"avatar_url":"https://avatars0.githubusercontent.com/u/609896?v=4","gravatar_id":"","url":"https://api.github.com/users/njsmith","html_url":"https://github.com/njsmith","followers_url":"https://api.github.com/users/njsmith/followers","following_url":"https://api.github.com/users/njsmith/following{/other_user}","gists_url":"https://api.github.com/users/njsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/njsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njsmith/subscriptions","organizations_url":"https://api.github.com/users/njsmith/orgs","repos_url":"https://api.github.com/users/njsmith/repos","events_url":"https://api.github.com/users/njsmith/events{/privacy}","received_events_url":"https://api.github.com/users/njsmith/received_events","type":"User","site_admin":false},"created_at":"2017-11-08T21:39:06Z","updated_at":"2017-11-08T21:39:06Z","author_association":"OWNER","body":"Do you have a use case?"}}
{"actor":{"display_login":"njsmith"}}