{"action":"created","comment":{"url":"https://api.github.com/repos/seperman/deepdiff/pulls/comments/73778171","id":73778171,"diff_hunk":"@@ -343,11 +343,17 @@ class DeepDiff(RemapDict):\n \n     show_warning = True\n \n-    def __init__(self, t1, t2, ignore_order=False, report_repetition=False, significant_digits=None, **kwargs):\n+    def __init__(self, t1, t2,\n+                 ignore_order=False, report_repetition=False, significant_digits=None,\n+                 exclude_paths=set(), exclude_types=set(), **kwargs):\n         if kwargs:\n-            raise ValueError(\"The following parameter(s) are not valid: %s\\nThe valid parameters are ignore_order, report_repetition and significant_digits\" % ', '.join(kwargs.keys()))\n+            raise ValueError((\"The following parameter(s) are not valid: %s\\n\" +\n+                             \"The valid parameters are ignore_order, report_repetition, significant_digits,\" +\n+                             \"exclude_paths and exclude_types.\") % ', '.join(kwargs.keys()))\n         self.ignore_order = ignore_order\n         self.report_repetition = report_repetition\n+        self.exclude_paths = exclude_paths","path":"deepdiff/deepdiff.py","position":15,"original_position":15,"commit_id":"8632b97bae934d625072fed4ef36f2e1ae4984e4","original_commit_id":"8632b97bae934d625072fed4ef36f2e1ae4984e4","user":{"login":"seperman","id":2314797,"avatar_url":"https://avatars.githubusercontent.com/u/2314797?v=3","gravatar_id":"","url":"https://api.github.com/users/seperman","html_url":"https://github.com/seperman","followers_url":"https://api.github.com/users/seperman/followers","following_url":"https://api.github.com/users/seperman/following{/other_user}","gists_url":"https://api.github.com/users/seperman/gists{/gist_id}","starred_url":"https://api.github.com/users/seperman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seperman/subscriptions","organizations_url":"https://api.github.com/users/seperman/orgs","repos_url":"https://api.github.com/users/seperman/repos","events_url":"https://api.github.com/users/seperman/events{/privacy}","received_events_url":"https://api.github.com/users/seperman/received_events","type":"User","site_admin":false},"body":"I think we should force convert the `exclude_paths` to set here. Because most people will pass it as list.","created_at":"2016-08-06T01:25:10Z","updated_at":"2016-08-06T01:25:10Z","html_url":"https://github.com/seperman/deepdiff/pull/36#discussion_r73778171","pull_request_url":"https://api.github.com/repos/seperman/deepdiff/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/comments/73778171"},"html":{"href":"https://github.com/seperman/deepdiff/pull/36#discussion_r73778171"},"pull_request":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/seperman/deepdiff/pulls/36","id":80247781,"html_url":"https://github.com/seperman/deepdiff/pull/36","diff_url":"https://github.com/seperman/deepdiff/pull/36.diff","patch_url":"https://github.com/seperman/deepdiff/pull/36.patch","issue_url":"https://api.github.com/repos/seperman/deepdiff/issues/36","number":36,"state":"open","locked":false,"title":"Exclusion patterns","user":{"login":"victorhahncastell","id":3177019,"avatar_url":"https://avatars.githubusercontent.com/u/3177019?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhahncastell","html_url":"https://github.com/victorhahncastell","followers_url":"https://api.github.com/users/victorhahncastell/followers","following_url":"https://api.github.com/users/victorhahncastell/following{/other_user}","gists_url":"https://api.github.com/users/victorhahncastell/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhahncastell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhahncastell/subscriptions","organizations_url":"https://api.github.com/users/victorhahncastell/orgs","repos_url":"https://api.github.com/users/victorhahncastell/repos","events_url":"https://api.github.com/users/victorhahncastell/events{/privacy}","received_events_url":"https://api.github.com/users/victorhahncastell/received_events","type":"User","site_admin":false},"body":"Allows to exclude specific parts of an object tree from comparison.\r\n\r\nI took the liberty of including a version bump -- if that doesn't fit your versioning scheme, I'll nuke that commit.","created_at":"2016-08-05T14:00:04Z","updated_at":"2016-08-06T01:25:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1c7871f412269a97b61f3f8ceaa0cb11f23ef7f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/seperman/deepdiff/pulls/36/commits","review_comments_url":"https://api.github.com/repos/seperman/deepdiff/pulls/36/comments","review_comment_url":"https://api.github.com/repos/seperman/deepdiff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seperman/deepdiff/issues/36/comments","statuses_url":"https://api.github.com/repos/seperman/deepdiff/statuses/8632b97bae934d625072fed4ef36f2e1ae4984e4","head":{"label":"victorhahncastell:pr2_selective_compare","ref":"pr2_selective_compare","sha":"8632b97bae934d625072fed4ef36f2e1ae4984e4","user":{"login":"victorhahncastell","id":3177019,"avatar_url":"https://avatars.githubusercontent.com/u/3177019?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhahncastell","html_url":"https://github.com/victorhahncastell","followers_url":"https://api.github.com/users/victorhahncastell/followers","following_url":"https://api.github.com/users/victorhahncastell/following{/other_user}","gists_url":"https://api.github.com/users/victorhahncastell/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhahncastell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhahncastell/subscriptions","organizations_url":"https://api.github.com/users/victorhahncastell/orgs","repos_url":"https://api.github.com/users/victorhahncastell/repos","events_url":"https://api.github.com/users/victorhahncastell/events{/privacy}","received_events_url":"https://api.github.com/users/victorhahncastell/received_events","type":"User","site_admin":false},"repo":{"id":62630122,"name":"deepdiff","full_name":"victorhahncastell/deepdiff","owner":{"login":"victorhahncastell","id":3177019,"avatar_url":"https://avatars.githubusercontent.com/u/3177019?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhahncastell","html_url":"https://github.com/victorhahncastell","followers_url":"https://api.github.com/users/victorhahncastell/followers","following_url":"https://api.github.com/users/victorhahncastell/following{/other_user}","gists_url":"https://api.github.com/users/victorhahncastell/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhahncastell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhahncastell/subscriptions","organizations_url":"https://api.github.com/users/victorhahncastell/orgs","repos_url":"https://api.github.com/users/victorhahncastell/repos","events_url":"https://api.github.com/users/victorhahncastell/events{/privacy}","received_events_url":"https://api.github.com/users/victorhahncastell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorhahncastell/deepdiff","description":"Deep Difference of dictionaries, iterables, strings and other objects. It will recursively look for all the changes.","fork":true,"url":"https://api.github.com/repos/victorhahncastell/deepdiff","forks_url":"https://api.github.com/repos/victorhahncastell/deepdiff/forks","keys_url":"https://api.github.com/repos/victorhahncastell/deepdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorhahncastell/deepdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorhahncastell/deepdiff/teams","hooks_url":"https://api.github.com/repos/victorhahncastell/deepdiff/hooks","issue_events_url":"https://api.github.com/repos/victorhahncastell/deepdiff/issues/events{/number}","events_url":"https://api.github.com/repos/victorhahncastell/deepdiff/events","assignees_url":"https://api.github.com/repos/victorhahncastell/deepdiff/assignees{/user}","branches_url":"https://api.github.com/repos/victorhahncastell/deepdiff/branches{/branch}","tags_url":"https://api.github.com/repos/victorhahncastell/deepdiff/tags","blobs_url":"https://api.github.com/repos/victorhahncastell/deepdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorhahncastell/deepdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorhahncastell/deepdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorhahncastell/deepdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorhahncastell/deepdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/victorhahncastell/deepdiff/languages","stargazers_url":"https://api.github.com/repos/victorhahncastell/deepdiff/stargazers","contributors_url":"https://api.github.com/repos/victorhahncastell/deepdiff/contributors","subscribers_url":"https://api.github.com/repos/victorhahncastell/deepdiff/subscribers","subscription_url":"https://api.github.com/repos/victorhahncastell/deepdiff/subscription","commits_url":"https://api.github.com/repos/victorhahncastell/deepdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorhahncastell/deepdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorhahncastell/deepdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorhahncastell/deepdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorhahncastell/deepdiff/contents/{+path}","compare_url":"https://api.github.com/repos/victorhahncastell/deepdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorhahncastell/deepdiff/merges","archive_url":"https://api.github.com/repos/victorhahncastell/deepdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorhahncastell/deepdiff/downloads","issues_url":"https://api.github.com/repos/victorhahncastell/deepdiff/issues{/number}","pulls_url":"https://api.github.com/repos/victorhahncastell/deepdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/victorhahncastell/deepdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/victorhahncastell/deepdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorhahncastell/deepdiff/labels{/name}","releases_url":"https://api.github.com/repos/victorhahncastell/deepdiff/releases{/id}","deployments_url":"https://api.github.com/repos/victorhahncastell/deepdiff/deployments","created_at":"2016-07-05T11:02:32Z","updated_at":"2016-07-05T11:02:33Z","pushed_at":"2016-08-05T13:51:56Z","git_url":"git://github.com/victorhahncastell/deepdiff.git","ssh_url":"git@github.com:victorhahncastell/deepdiff.git","clone_url":"https://github.com/victorhahncastell/deepdiff.git","svn_url":"https://github.com/victorhahncastell/deepdiff","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"seperman:master","ref":"master","sha":"a9b49e90b5606a7090919fc06b27d26a24d52806","user":{"login":"seperman","id":2314797,"avatar_url":"https://avatars.githubusercontent.com/u/2314797?v=3","gravatar_id":"","url":"https://api.github.com/users/seperman","html_url":"https://github.com/seperman","followers_url":"https://api.github.com/users/seperman/followers","following_url":"https://api.github.com/users/seperman/following{/other_user}","gists_url":"https://api.github.com/users/seperman/gists{/gist_id}","starred_url":"https://api.github.com/users/seperman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seperman/subscriptions","organizations_url":"https://api.github.com/users/seperman/orgs","repos_url":"https://api.github.com/users/seperman/repos","events_url":"https://api.github.com/users/seperman/events{/privacy}","received_events_url":"https://api.github.com/users/seperman/received_events","type":"User","site_admin":false},"repo":{"id":24484622,"name":"deepdiff","full_name":"seperman/deepdiff","owner":{"login":"seperman","id":2314797,"avatar_url":"https://avatars.githubusercontent.com/u/2314797?v=3","gravatar_id":"","url":"https://api.github.com/users/seperman","html_url":"https://github.com/seperman","followers_url":"https://api.github.com/users/seperman/followers","following_url":"https://api.github.com/users/seperman/following{/other_user}","gists_url":"https://api.github.com/users/seperman/gists{/gist_id}","starred_url":"https://api.github.com/users/seperman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seperman/subscriptions","organizations_url":"https://api.github.com/users/seperman/orgs","repos_url":"https://api.github.com/users/seperman/repos","events_url":"https://api.github.com/users/seperman/events{/privacy}","received_events_url":"https://api.github.com/users/seperman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seperman/deepdiff","description":"Deep Difference of dictionaries, iterables, strings and other objects. It will recursively look for all the changes.","fork":false,"url":"https://api.github.com/repos/seperman/deepdiff","forks_url":"https://api.github.com/repos/seperman/deepdiff/forks","keys_url":"https://api.github.com/repos/seperman/deepdiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seperman/deepdiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seperman/deepdiff/teams","hooks_url":"https://api.github.com/repos/seperman/deepdiff/hooks","issue_events_url":"https://api.github.com/repos/seperman/deepdiff/issues/events{/number}","events_url":"https://api.github.com/repos/seperman/deepdiff/events","assignees_url":"https://api.github.com/repos/seperman/deepdiff/assignees{/user}","branches_url":"https://api.github.com/repos/seperman/deepdiff/branches{/branch}","tags_url":"https://api.github.com/repos/seperman/deepdiff/tags","blobs_url":"https://api.github.com/repos/seperman/deepdiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seperman/deepdiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seperman/deepdiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/seperman/deepdiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seperman/deepdiff/statuses/{sha}","languages_url":"https://api.github.com/repos/seperman/deepdiff/languages","stargazers_url":"https://api.github.com/repos/seperman/deepdiff/stargazers","contributors_url":"https://api.github.com/repos/seperman/deepdiff/contributors","subscribers_url":"https://api.github.com/repos/seperman/deepdiff/subscribers","subscription_url":"https://api.github.com/repos/seperman/deepdiff/subscription","commits_url":"https://api.github.com/repos/seperman/deepdiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/seperman/deepdiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/seperman/deepdiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/seperman/deepdiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/seperman/deepdiff/contents/{+path}","compare_url":"https://api.github.com/repos/seperman/deepdiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seperman/deepdiff/merges","archive_url":"https://api.github.com/repos/seperman/deepdiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seperman/deepdiff/downloads","issues_url":"https://api.github.com/repos/seperman/deepdiff/issues{/number}","pulls_url":"https://api.github.com/repos/seperman/deepdiff/pulls{/number}","milestones_url":"https://api.github.com/repos/seperman/deepdiff/milestones{/number}","notifications_url":"https://api.github.com/repos/seperman/deepdiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seperman/deepdiff/labels{/name}","releases_url":"https://api.github.com/repos/seperman/deepdiff/releases{/id}","deployments_url":"https://api.github.com/repos/seperman/deepdiff/deployments","created_at":"2014-09-26T03:21:47Z","updated_at":"2016-08-05T21:19:28Z","pushed_at":"2016-08-05T14:00:04Z","git_url":"git://github.com/seperman/deepdiff.git","ssh_url":"git@github.com:seperman/deepdiff.git","clone_url":"https://github.com/seperman/deepdiff.git","svn_url":"https://github.com/seperman/deepdiff","homepage":null,"size":222,"stargazers_count":95,"watchers_count":95,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":5,"forks":23,"open_issues":5,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/36"},"html":{"href":"https://github.com/seperman/deepdiff/pull/36"},"issue":{"href":"https://api.github.com/repos/seperman/deepdiff/issues/36"},"comments":{"href":"https://api.github.com/repos/seperman/deepdiff/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seperman/deepdiff/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/seperman/deepdiff/statuses/8632b97bae934d625072fed4ef36f2e1ae4984e4"}}}}
{"actor":{"display_login":"seperman"}}