{"action":"created","comment":{"url":"https://api.github.com/repos/falconry/falcon/pulls/comments/71428925","id":71428925,"diff_hunk":"@@ -114,6 +132,12 @@ def __init__(self):\n         self.stream = None\n         self.stream_len = None\n \n+        if self.context_type is None:\n+            # PERF(kgriffs): The literal syntax is more efficient than dict().\n+            self.context = {}\n+        else:\n+            self.context = self.context_type()\n+","path":"falcon/response.py","position":52,"original_position":52,"commit_id":"0864f6a42db2bf9704d03b88e36be5ff3be25dec","original_commit_id":"ff7f2abe01f2f11ff2bb28b17c116b07826a8a55","user":{"login":"fxfitz","id":6355826,"avatar_url":"https://avatars.githubusercontent.com/u/6355826?v=3","gravatar_id":"","url":"https://api.github.com/users/fxfitz","html_url":"https://github.com/fxfitz","followers_url":"https://api.github.com/users/fxfitz/followers","following_url":"https://api.github.com/users/fxfitz/following{/other_user}","gists_url":"https://api.github.com/users/fxfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/fxfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxfitz/subscriptions","organizations_url":"https://api.github.com/users/fxfitz/orgs","repos_url":"https://api.github.com/users/fxfitz/repos","events_url":"https://api.github.com/users/fxfitz/events{/privacy}","received_events_url":"https://api.github.com/users/fxfitz/received_events","type":"User","site_admin":false},"body":"I personally am a fan of using ternary operators, but I've met so many people who are against it, so now I avoid them. +1 for keeping it as is since it is easier to read.","created_at":"2016-07-19T21:38:36Z","updated_at":"2016-07-19T21:38:36Z","html_url":"https://github.com/falconry/falcon/pull/821#discussion_r71428925","pull_request_url":"https://api.github.com/repos/falconry/falcon/pulls/821","_links":{"self":{"href":"https://api.github.com/repos/falconry/falcon/pulls/comments/71428925"},"html":{"href":"https://github.com/falconry/falcon/pull/821#discussion_r71428925"},"pull_request":{"href":"https://api.github.com/repos/falconry/falcon/pulls/821"}}},"pull_request":{"url":"https://api.github.com/repos/falconry/falcon/pulls/821","id":73296236,"html_url":"https://github.com/falconry/falcon/pull/821","diff_url":"https://github.com/falconry/falcon/pull/821.diff","patch_url":"https://github.com/falconry/falcon/pull/821.patch","issue_url":"https://api.github.com/repos/falconry/falcon/issues/821","number":821,"state":"open","locked":false,"title":"feat(Response): Add context property to the Response class","user":{"login":"kgriffs","id":719939,"avatar_url":"https://avatars.githubusercontent.com/u/719939?v=3","gravatar_id":"","url":"https://api.github.com/users/kgriffs","html_url":"https://github.com/kgriffs","followers_url":"https://api.github.com/users/kgriffs/followers","following_url":"https://api.github.com/users/kgriffs/following{/other_user}","gists_url":"https://api.github.com/users/kgriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/kgriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgriffs/subscriptions","organizations_url":"https://api.github.com/users/kgriffs/orgs","repos_url":"https://api.github.com/users/kgriffs/repos","events_url":"https://api.github.com/users/kgriffs/events{/privacy}","received_events_url":"https://api.github.com/users/kgriffs/received_events","type":"User","site_admin":false},"body":"Add a context property to the Response class, to mirror the context property that is already available on the Request class.","created_at":"2016-06-09T22:24:31Z","updated_at":"2016-07-19T21:38:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6a8299a39d310470e88ff53ea7db5d87a4050ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/falconry/falcon/pulls/821/commits","review_comments_url":"https://api.github.com/repos/falconry/falcon/pulls/821/comments","review_comment_url":"https://api.github.com/repos/falconry/falcon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/falconry/falcon/issues/821/comments","statuses_url":"https://api.github.com/repos/falconry/falcon/statuses/0864f6a42db2bf9704d03b88e36be5ff3be25dec","head":{"label":"kgriffs:response_context","ref":"response_context","sha":"0864f6a42db2bf9704d03b88e36be5ff3be25dec","user":{"login":"kgriffs","id":719939,"avatar_url":"https://avatars.githubusercontent.com/u/719939?v=3","gravatar_id":"","url":"https://api.github.com/users/kgriffs","html_url":"https://github.com/kgriffs","followers_url":"https://api.github.com/users/kgriffs/followers","following_url":"https://api.github.com/users/kgriffs/following{/other_user}","gists_url":"https://api.github.com/users/kgriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/kgriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgriffs/subscriptions","organizations_url":"https://api.github.com/users/kgriffs/orgs","repos_url":"https://api.github.com/users/kgriffs/repos","events_url":"https://api.github.com/users/kgriffs/events{/privacy}","received_events_url":"https://api.github.com/users/kgriffs/received_events","type":"User","site_admin":false},"repo":{"id":7903192,"name":"falcon","full_name":"kgriffs/falcon","owner":{"login":"kgriffs","id":719939,"avatar_url":"https://avatars.githubusercontent.com/u/719939?v=3","gravatar_id":"","url":"https://api.github.com/users/kgriffs","html_url":"https://github.com/kgriffs","followers_url":"https://api.github.com/users/kgriffs/followers","following_url":"https://api.github.com/users/kgriffs/following{/other_user}","gists_url":"https://api.github.com/users/kgriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/kgriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgriffs/subscriptions","organizations_url":"https://api.github.com/users/kgriffs/orgs","repos_url":"https://api.github.com/users/kgriffs/repos","events_url":"https://api.github.com/users/kgriffs/events{/privacy}","received_events_url":"https://api.github.com/users/kgriffs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kgriffs/falcon","description":"Falcon is a fast, light-weight framework for building cloud APIs.","fork":true,"url":"https://api.github.com/repos/kgriffs/falcon","forks_url":"https://api.github.com/repos/kgriffs/falcon/forks","keys_url":"https://api.github.com/repos/kgriffs/falcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kgriffs/falcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kgriffs/falcon/teams","hooks_url":"https://api.github.com/repos/kgriffs/falcon/hooks","issue_events_url":"https://api.github.com/repos/kgriffs/falcon/issues/events{/number}","events_url":"https://api.github.com/repos/kgriffs/falcon/events","assignees_url":"https://api.github.com/repos/kgriffs/falcon/assignees{/user}","branches_url":"https://api.github.com/repos/kgriffs/falcon/branches{/branch}","tags_url":"https://api.github.com/repos/kgriffs/falcon/tags","blobs_url":"https://api.github.com/repos/kgriffs/falcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kgriffs/falcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kgriffs/falcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/kgriffs/falcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kgriffs/falcon/statuses/{sha}","languages_url":"https://api.github.com/repos/kgriffs/falcon/languages","stargazers_url":"https://api.github.com/repos/kgriffs/falcon/stargazers","contributors_url":"https://api.github.com/repos/kgriffs/falcon/contributors","subscribers_url":"https://api.github.com/repos/kgriffs/falcon/subscribers","subscription_url":"https://api.github.com/repos/kgriffs/falcon/subscription","commits_url":"https://api.github.com/repos/kgriffs/falcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/kgriffs/falcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/kgriffs/falcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/kgriffs/falcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/kgriffs/falcon/contents/{+path}","compare_url":"https://api.github.com/repos/kgriffs/falcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kgriffs/falcon/merges","archive_url":"https://api.github.com/repos/kgriffs/falcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kgriffs/falcon/downloads","issues_url":"https://api.github.com/repos/kgriffs/falcon/issues{/number}","pulls_url":"https://api.github.com/repos/kgriffs/falcon/pulls{/number}","milestones_url":"https://api.github.com/repos/kgriffs/falcon/milestones{/number}","notifications_url":"https://api.github.com/repos/kgriffs/falcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kgriffs/falcon/labels{/name}","releases_url":"https://api.github.com/repos/kgriffs/falcon/releases{/id}","deployments_url":"https://api.github.com/repos/kgriffs/falcon/deployments","created_at":"2013-01-29T22:58:41Z","updated_at":"2015-05-08T17:32:40Z","pushed_at":"2016-07-18T22:48:25Z","git_url":"git://github.com/kgriffs/falcon.git","ssh_url":"git@github.com:kgriffs/falcon.git","clone_url":"https://github.com/kgriffs/falcon.git","svn_url":"https://github.com/kgriffs/falcon","homepage":"http://falconframework.org","size":3131,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"falconry:master","ref":"master","sha":"fc3999946a9cd09b4de0f9c6cb473559cfbe0508","user":{"login":"falconry","id":11353642,"avatar_url":"https://avatars.githubusercontent.com/u/11353642?v=3","gravatar_id":"","url":"https://api.github.com/users/falconry","html_url":"https://github.com/falconry","followers_url":"https://api.github.com/users/falconry/followers","following_url":"https://api.github.com/users/falconry/following{/other_user}","gists_url":"https://api.github.com/users/falconry/gists{/gist_id}","starred_url":"https://api.github.com/users/falconry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falconry/subscriptions","organizations_url":"https://api.github.com/users/falconry/orgs","repos_url":"https://api.github.com/users/falconry/repos","events_url":"https://api.github.com/users/falconry/events{/privacy}","received_events_url":"https://api.github.com/users/falconry/received_events","type":"Organization","site_admin":false},"repo":{"id":7040500,"name":"falcon","full_name":"falconry/falcon","owner":{"login":"falconry","id":11353642,"avatar_url":"https://avatars.githubusercontent.com/u/11353642?v=3","gravatar_id":"","url":"https://api.github.com/users/falconry","html_url":"https://github.com/falconry","followers_url":"https://api.github.com/users/falconry/followers","following_url":"https://api.github.com/users/falconry/following{/other_user}","gists_url":"https://api.github.com/users/falconry/gists{/gist_id}","starred_url":"https://api.github.com/users/falconry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falconry/subscriptions","organizations_url":"https://api.github.com/users/falconry/orgs","repos_url":"https://api.github.com/users/falconry/repos","events_url":"https://api.github.com/users/falconry/events{/privacy}","received_events_url":"https://api.github.com/users/falconry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/falconry/falcon","description":"Falcon is a low-level, high-performance Python framework for building HTTP APIs, app backends, and higher-level frameworks.","fork":false,"url":"https://api.github.com/repos/falconry/falcon","forks_url":"https://api.github.com/repos/falconry/falcon/forks","keys_url":"https://api.github.com/repos/falconry/falcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/falconry/falcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/falconry/falcon/teams","hooks_url":"https://api.github.com/repos/falconry/falcon/hooks","issue_events_url":"https://api.github.com/repos/falconry/falcon/issues/events{/number}","events_url":"https://api.github.com/repos/falconry/falcon/events","assignees_url":"https://api.github.com/repos/falconry/falcon/assignees{/user}","branches_url":"https://api.github.com/repos/falconry/falcon/branches{/branch}","tags_url":"https://api.github.com/repos/falconry/falcon/tags","blobs_url":"https://api.github.com/repos/falconry/falcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/falconry/falcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/falconry/falcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/falconry/falcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/falconry/falcon/statuses/{sha}","languages_url":"https://api.github.com/repos/falconry/falcon/languages","stargazers_url":"https://api.github.com/repos/falconry/falcon/stargazers","contributors_url":"https://api.github.com/repos/falconry/falcon/contributors","subscribers_url":"https://api.github.com/repos/falconry/falcon/subscribers","subscription_url":"https://api.github.com/repos/falconry/falcon/subscription","commits_url":"https://api.github.com/repos/falconry/falcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/falconry/falcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/falconry/falcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/falconry/falcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/falconry/falcon/contents/{+path}","compare_url":"https://api.github.com/repos/falconry/falcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/falconry/falcon/merges","archive_url":"https://api.github.com/repos/falconry/falcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/falconry/falcon/downloads","issues_url":"https://api.github.com/repos/falconry/falcon/issues{/number}","pulls_url":"https://api.github.com/repos/falconry/falcon/pulls{/number}","milestones_url":"https://api.github.com/repos/falconry/falcon/milestones{/number}","notifications_url":"https://api.github.com/repos/falconry/falcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/falconry/falcon/labels{/name}","releases_url":"https://api.github.com/repos/falconry/falcon/releases{/id}","deployments_url":"https://api.github.com/repos/falconry/falcon/deployments","created_at":"2012-12-06T18:17:51Z","updated_at":"2016-07-19T20:42:17Z","pushed_at":"2016-07-18T22:48:26Z","git_url":"git://github.com/falconry/falcon.git","ssh_url":"git@github.com:falconry/falcon.git","clone_url":"https://github.com/falconry/falcon.git","svn_url":"https://github.com/falconry/falcon","homepage":"https://falcon.readthedocs.org/en/stable/","size":27042,"stargazers_count":3064,"watchers_count":3064,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":345,"mirror_url":null,"open_issues_count":159,"forks":345,"open_issues":159,"watchers":3064,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/falconry/falcon/pulls/821"},"html":{"href":"https://github.com/falconry/falcon/pull/821"},"issue":{"href":"https://api.github.com/repos/falconry/falcon/issues/821"},"comments":{"href":"https://api.github.com/repos/falconry/falcon/issues/821/comments"},"review_comments":{"href":"https://api.github.com/repos/falconry/falcon/pulls/821/comments"},"review_comment":{"href":"https://api.github.com/repos/falconry/falcon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/falconry/falcon/pulls/821/commits"},"statuses":{"href":"https://api.github.com/repos/falconry/falcon/statuses/0864f6a42db2bf9704d03b88e36be5ff3be25dec"}}}}
{"actor":{"display_login":"fxfitz"}}