{"action":"closed","number":119,"pull_request":{"url":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119","id":278004367,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc4MDA0MzY3","html_url":"https://github.com/cool-RR/PySnooper/pull/119","diff_url":"https://github.com/cool-RR/PySnooper/pull/119.diff","patch_url":"https://github.com/cool-RR/PySnooper/pull/119.patch","issue_url":"https://api.github.com/repos/cool-RR/PySnooper/issues/119","number":119,"state":"closed","locked":false,"title":"Add log function","user":{"login":"alexmojaki","id":3627481,"node_id":"MDQ6VXNlcjM2Mjc0ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/3627481?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmojaki","html_url":"https://github.com/alexmojaki","followers_url":"https://api.github.com/users/alexmojaki/followers","following_url":"https://api.github.com/users/alexmojaki/following{/other_user}","gists_url":"https://api.github.com/users/alexmojaki/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmojaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmojaki/subscriptions","organizations_url":"https://api.github.com/users/alexmojaki/orgs","repos_url":"https://api.github.com/users/alexmojaki/repos","events_url":"https://api.github.com/users/alexmojaki/events{/privacy}","received_events_url":"https://api.github.com/users/alexmojaki/received_events","type":"User","site_admin":false},"body":"I know this library is against print style debugging, but sometimes it has its uses. This helps when the usual pysnooper methods are not ideal. For example:\r\n\r\n1. To see a single full value, as in #104. This is more convenient than changing MAX_VARIABLE_LENGTH and doesn't globally make the output more verbose.\r\n2. To see just one value without all the other stuff from `snoop`. Even using `with` on a single line can print out a bunch of irrelevant variables. This can be used in places where there is no decorator or block.\r\n3. To see a value that doesn't have a local variable, without having to rearrange the code and invent a temporary variable. Like the libraries q and icecream, this lets the arguments pass through for minimal code disruption. It's also good for people who are tired and used to print debugging so they don't think of adding a local variable.\r\n4. To see a value just once, if evaluating its repr every line is terrible for performance or seeing every modification to its value would be disruptive.\r\n\r\nThe main advantage over `print` is that this is combined with the other output nicely, no matter the output method.","created_at":"2019-05-11T19:34:56Z","updated_at":"2019-05-12T14:11:13Z","closed_at":"2019-05-12T14:11:13Z","merged_at":null,"merge_commit_sha":"3ffa7c58f0e00244ece49710ff7e04fc49cfa7cd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119/commits","review_comments_url":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119/comments","review_comment_url":"https://api.github.com/repos/cool-RR/PySnooper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cool-RR/PySnooper/issues/119/comments","statuses_url":"https://api.github.com/repos/cool-RR/PySnooper/statuses/8cd85b0ed7e554fe131ee8737f2a4a9a3b4cfde4","head":{"label":"alexmojaki:log","ref":"log","sha":"8cd85b0ed7e554fe131ee8737f2a4a9a3b4cfde4","user":{"login":"alexmojaki","id":3627481,"node_id":"MDQ6VXNlcjM2Mjc0ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/3627481?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmojaki","html_url":"https://github.com/alexmojaki","followers_url":"https://api.github.com/users/alexmojaki/followers","following_url":"https://api.github.com/users/alexmojaki/following{/other_user}","gists_url":"https://api.github.com/users/alexmojaki/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmojaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmojaki/subscriptions","organizations_url":"https://api.github.com/users/alexmojaki/orgs","repos_url":"https://api.github.com/users/alexmojaki/repos","events_url":"https://api.github.com/users/alexmojaki/events{/privacy}","received_events_url":"https://api.github.com/users/alexmojaki/received_events","type":"User","site_admin":false},"repo":{"id":183391303,"node_id":"MDEwOlJlcG9zaXRvcnkxODMzOTEzMDM=","name":"PySnooper","full_name":"alexmojaki/PySnooper","private":false,"owner":{"login":"alexmojaki","id":3627481,"node_id":"MDQ6VXNlcjM2Mjc0ODE=","avatar_url":"https://avatars0.githubusercontent.com/u/3627481?v=4","gravatar_id":"","url":"https://api.github.com/users/alexmojaki","html_url":"https://github.com/alexmojaki","followers_url":"https://api.github.com/users/alexmojaki/followers","following_url":"https://api.github.com/users/alexmojaki/following{/other_user}","gists_url":"https://api.github.com/users/alexmojaki/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmojaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmojaki/subscriptions","organizations_url":"https://api.github.com/users/alexmojaki/orgs","repos_url":"https://api.github.com/users/alexmojaki/repos","events_url":"https://api.github.com/users/alexmojaki/events{/privacy}","received_events_url":"https://api.github.com/users/alexmojaki/received_events","type":"User","site_admin":false},"html_url":"https://github.com/alexmojaki/PySnooper","description":"Never use print for debugging again","fork":true,"url":"https://api.github.com/repos/alexmojaki/PySnooper","forks_url":"https://api.github.com/repos/alexmojaki/PySnooper/forks","keys_url":"https://api.github.com/repos/alexmojaki/PySnooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexmojaki/PySnooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexmojaki/PySnooper/teams","hooks_url":"https://api.github.com/repos/alexmojaki/PySnooper/hooks","issue_events_url":"https://api.github.com/repos/alexmojaki/PySnooper/issues/events{/number}","events_url":"https://api.github.com/repos/alexmojaki/PySnooper/events","assignees_url":"https://api.github.com/repos/alexmojaki/PySnooper/assignees{/user}","branches_url":"https://api.github.com/repos/alexmojaki/PySnooper/branches{/branch}","tags_url":"https://api.github.com/repos/alexmojaki/PySnooper/tags","blobs_url":"https://api.github.com/repos/alexmojaki/PySnooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexmojaki/PySnooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexmojaki/PySnooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexmojaki/PySnooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexmojaki/PySnooper/statuses/{sha}","languages_url":"https://api.github.com/repos/alexmojaki/PySnooper/languages","stargazers_url":"https://api.github.com/repos/alexmojaki/PySnooper/stargazers","contributors_url":"https://api.github.com/repos/alexmojaki/PySnooper/contributors","subscribers_url":"https://api.github.com/repos/alexmojaki/PySnooper/subscribers","subscription_url":"https://api.github.com/repos/alexmojaki/PySnooper/subscription","commits_url":"https://api.github.com/repos/alexmojaki/PySnooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexmojaki/PySnooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexmojaki/PySnooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexmojaki/PySnooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexmojaki/PySnooper/contents/{+path}","compare_url":"https://api.github.com/repos/alexmojaki/PySnooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexmojaki/PySnooper/merges","archive_url":"https://api.github.com/repos/alexmojaki/PySnooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexmojaki/PySnooper/downloads","issues_url":"https://api.github.com/repos/alexmojaki/PySnooper/issues{/number}","pulls_url":"https://api.github.com/repos/alexmojaki/PySnooper/pulls{/number}","milestones_url":"https://api.github.com/repos/alexmojaki/PySnooper/milestones{/number}","notifications_url":"https://api.github.com/repos/alexmojaki/PySnooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexmojaki/PySnooper/labels{/name}","releases_url":"https://api.github.com/repos/alexmojaki/PySnooper/releases{/id}","deployments_url":"https://api.github.com/repos/alexmojaki/PySnooper/deployments","created_at":"2019-04-25T08:32:07Z","updated_at":"2019-05-03T15:59:13Z","pushed_at":"2019-05-11T19:16:00Z","git_url":"git://github.com/alexmojaki/PySnooper.git","ssh_url":"git@github.com:alexmojaki/PySnooper.git","clone_url":"https://github.com/alexmojaki/PySnooper.git","svn_url":"https://github.com/alexmojaki/PySnooper","homepage":"","size":196,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cool-RR:master","ref":"master","sha":"d200457d6336782876dc5a702dee91936b419f85","user":{"login":"cool-RR","id":56778,"node_id":"MDQ6VXNlcjU2Nzc4","avatar_url":"https://avatars1.githubusercontent.com/u/56778?v=4","gravatar_id":"","url":"https://api.github.com/users/cool-RR","html_url":"https://github.com/cool-RR","followers_url":"https://api.github.com/users/cool-RR/followers","following_url":"https://api.github.com/users/cool-RR/following{/other_user}","gists_url":"https://api.github.com/users/cool-RR/gists{/gist_id}","starred_url":"https://api.github.com/users/cool-RR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cool-RR/subscriptions","organizations_url":"https://api.github.com/users/cool-RR/orgs","repos_url":"https://api.github.com/users/cool-RR/repos","events_url":"https://api.github.com/users/cool-RR/events{/privacy}","received_events_url":"https://api.github.com/users/cool-RR/received_events","type":"User","site_admin":false},"repo":{"id":182097305,"node_id":"MDEwOlJlcG9zaXRvcnkxODIwOTczMDU=","name":"PySnooper","full_name":"cool-RR/PySnooper","private":false,"owner":{"login":"cool-RR","id":56778,"node_id":"MDQ6VXNlcjU2Nzc4","avatar_url":"https://avatars1.githubusercontent.com/u/56778?v=4","gravatar_id":"","url":"https://api.github.com/users/cool-RR","html_url":"https://github.com/cool-RR","followers_url":"https://api.github.com/users/cool-RR/followers","following_url":"https://api.github.com/users/cool-RR/following{/other_user}","gists_url":"https://api.github.com/users/cool-RR/gists{/gist_id}","starred_url":"https://api.github.com/users/cool-RR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cool-RR/subscriptions","organizations_url":"https://api.github.com/users/cool-RR/orgs","repos_url":"https://api.github.com/users/cool-RR/repos","events_url":"https://api.github.com/users/cool-RR/events{/privacy}","received_events_url":"https://api.github.com/users/cool-RR/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cool-RR/PySnooper","description":"Never use print for debugging again","fork":false,"url":"https://api.github.com/repos/cool-RR/PySnooper","forks_url":"https://api.github.com/repos/cool-RR/PySnooper/forks","keys_url":"https://api.github.com/repos/cool-RR/PySnooper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cool-RR/PySnooper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cool-RR/PySnooper/teams","hooks_url":"https://api.github.com/repos/cool-RR/PySnooper/hooks","issue_events_url":"https://api.github.com/repos/cool-RR/PySnooper/issues/events{/number}","events_url":"https://api.github.com/repos/cool-RR/PySnooper/events","assignees_url":"https://api.github.com/repos/cool-RR/PySnooper/assignees{/user}","branches_url":"https://api.github.com/repos/cool-RR/PySnooper/branches{/branch}","tags_url":"https://api.github.com/repos/cool-RR/PySnooper/tags","blobs_url":"https://api.github.com/repos/cool-RR/PySnooper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cool-RR/PySnooper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cool-RR/PySnooper/git/refs{/sha}","trees_url":"https://api.github.com/repos/cool-RR/PySnooper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cool-RR/PySnooper/statuses/{sha}","languages_url":"https://api.github.com/repos/cool-RR/PySnooper/languages","stargazers_url":"https://api.github.com/repos/cool-RR/PySnooper/stargazers","contributors_url":"https://api.github.com/repos/cool-RR/PySnooper/contributors","subscribers_url":"https://api.github.com/repos/cool-RR/PySnooper/subscribers","subscription_url":"https://api.github.com/repos/cool-RR/PySnooper/subscription","commits_url":"https://api.github.com/repos/cool-RR/PySnooper/commits{/sha}","git_commits_url":"https://api.github.com/repos/cool-RR/PySnooper/git/commits{/sha}","comments_url":"https://api.github.com/repos/cool-RR/PySnooper/comments{/number}","issue_comment_url":"https://api.github.com/repos/cool-RR/PySnooper/issues/comments{/number}","contents_url":"https://api.github.com/repos/cool-RR/PySnooper/contents/{+path}","compare_url":"https://api.github.com/repos/cool-RR/PySnooper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cool-RR/PySnooper/merges","archive_url":"https://api.github.com/repos/cool-RR/PySnooper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cool-RR/PySnooper/downloads","issues_url":"https://api.github.com/repos/cool-RR/PySnooper/issues{/number}","pulls_url":"https://api.github.com/repos/cool-RR/PySnooper/pulls{/number}","milestones_url":"https://api.github.com/repos/cool-RR/PySnooper/milestones{/number}","notifications_url":"https://api.github.com/repos/cool-RR/PySnooper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cool-RR/PySnooper/labels{/name}","releases_url":"https://api.github.com/repos/cool-RR/PySnooper/releases{/id}","deployments_url":"https://api.github.com/repos/cool-RR/PySnooper/deployments","created_at":"2019-04-18T13:55:43Z","updated_at":"2019-05-12T12:53:18Z","pushed_at":"2019-05-11T19:34:57Z","git_url":"git://github.com/cool-RR/PySnooper.git","ssh_url":"git@github.com:cool-RR/PySnooper.git","clone_url":"https://github.com/cool-RR/PySnooper.git","svn_url":"https://github.com/cool-RR/PySnooper","homepage":"","size":161,"stargazers_count":10005,"watchers_count":10005,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":578,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":578,"open_issues":11,"watchers":10005,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119"},"html":{"href":"https://github.com/cool-RR/PySnooper/pull/119"},"issue":{"href":"https://api.github.com/repos/cool-RR/PySnooper/issues/119"},"comments":{"href":"https://api.github.com/repos/cool-RR/PySnooper/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/cool-RR/PySnooper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cool-RR/PySnooper/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/cool-RR/PySnooper/statuses/8cd85b0ed7e554fe131ee8737f2a4a9a3b4cfde4"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":56,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"cool-RR"}}