{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/pyinter/pulls/comments/34365673","id":34365673,"diff_hunk":"@@ -230,9 +230,28 @@ def union(self, other):\n         else:\n             return IntervalSet((self, other))\n \n+    __or__ = __add__ = union\n+\n+    def __sub__(self, other):\n+        \"\"\"Returns a new Interval or an :class:`~pyinter.IntervalSet` representing the union of this","path":"pyinter/interval.py","position":40,"original_position":40,"commit_id":"963243741e471685acef86d59cf977ebca336676","original_commit_id":"963243741e471685acef86d59cf977ebca336676","user":{"login":"angelini","id":515110,"avatar_url":"https://avatars.githubusercontent.com/u/515110?v=3","gravatar_id":"","url":"https://api.github.com/users/angelini","html_url":"https://github.com/angelini","followers_url":"https://api.github.com/users/angelini/followers","following_url":"https://api.github.com/users/angelini/following{/other_user}","gists_url":"https://api.github.com/users/angelini/gists{/gist_id}","starred_url":"https://api.github.com/users/angelini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelini/subscriptions","organizations_url":"https://api.github.com/users/angelini/orgs","repos_url":"https://api.github.com/users/angelini/repos","events_url":"https://api.github.com/users/angelini/events{/privacy}","received_events_url":"https://api.github.com/users/angelini/received_events","type":"User","site_admin":false},"body":"union?","created_at":"2015-07-10T15:29:15Z","updated_at":"2015-07-10T15:29:15Z","html_url":"https://github.com/Shopify/pyinter/pull/1#discussion_r34365673","pull_request_url":"https://api.github.com/repos/Shopify/pyinter/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/comments/34365673"},"html":{"href":"https://github.com/Shopify/pyinter/pull/1#discussion_r34365673"},"pull_request":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/pyinter/pulls/1","id":39694957,"html_url":"https://github.com/Shopify/pyinter/pull/1","diff_url":"https://github.com/Shopify/pyinter/pull/1.diff","patch_url":"https://github.com/Shopify/pyinter/pull/1.patch","issue_url":"https://api.github.com/repos/Shopify/pyinter/issues/1","number":1,"state":"open","locked":false,"title":"Implement subtraction of intervals.","user":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"body":"PR to pyinter: https://github.com/intiocean/pyinter/pull/11\r\n\r\n@jamesemoody @angelini @datwright ","created_at":"2015-07-10T15:26:22Z","updated_at":"2015-07-10T15:29:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfd1ce3b5fa031b5bdc6ca62c6fad6f1e08ff335","assignee":{"login":"kevincox","id":494012,"avatar_url":"https://avatars.githubusercontent.com/u/494012?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincox","html_url":"https://github.com/kevincox","followers_url":"https://api.github.com/users/kevincox/followers","following_url":"https://api.github.com/users/kevincox/following{/other_user}","gists_url":"https://api.github.com/users/kevincox/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincox/subscriptions","organizations_url":"https://api.github.com/users/kevincox/orgs","repos_url":"https://api.github.com/users/kevincox/repos","events_url":"https://api.github.com/users/kevincox/events{/privacy}","received_events_url":"https://api.github.com/users/kevincox/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/pyinter/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Shopify/pyinter/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Shopify/pyinter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/pyinter/issues/1/comments","statuses_url":"https://api.github.com/repos/Shopify/pyinter/statuses/963243741e471685acef86d59cf977ebca336676","head":{"label":"Shopify:kevincox-add-sub","ref":"kevincox-add-sub","sha":"963243741e471685acef86d59cf977ebca336676","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":38884217,"name":"pyinter","full_name":"Shopify/pyinter","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/pyinter","description":"A interval package for Python which deals with interval arithmetic ","fork":true,"url":"https://api.github.com/repos/Shopify/pyinter","forks_url":"https://api.github.com/repos/Shopify/pyinter/forks","keys_url":"https://api.github.com/repos/Shopify/pyinter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/pyinter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/pyinter/teams","hooks_url":"https://api.github.com/repos/Shopify/pyinter/hooks","issue_events_url":"https://api.github.com/repos/Shopify/pyinter/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/pyinter/events","assignees_url":"https://api.github.com/repos/Shopify/pyinter/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/pyinter/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/pyinter/tags","blobs_url":"https://api.github.com/repos/Shopify/pyinter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/pyinter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/pyinter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/pyinter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/pyinter/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/pyinter/languages","stargazers_url":"https://api.github.com/repos/Shopify/pyinter/stargazers","contributors_url":"https://api.github.com/repos/Shopify/pyinter/contributors","subscribers_url":"https://api.github.com/repos/Shopify/pyinter/subscribers","subscription_url":"https://api.github.com/repos/Shopify/pyinter/subscription","commits_url":"https://api.github.com/repos/Shopify/pyinter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/pyinter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/pyinter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/pyinter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/pyinter/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/pyinter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/pyinter/merges","archive_url":"https://api.github.com/repos/Shopify/pyinter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/pyinter/downloads","issues_url":"https://api.github.com/repos/Shopify/pyinter/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/pyinter/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/pyinter/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/pyinter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/pyinter/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/pyinter/releases{/id}","created_at":"2015-07-10T14:22:31Z","updated_at":"2015-07-10T14:22:31Z","pushed_at":"2015-07-10T15:26:23Z","git_url":"git://github.com/Shopify/pyinter.git","ssh_url":"git@github.com:Shopify/pyinter.git","clone_url":"https://github.com/Shopify/pyinter.git","svn_url":"https://github.com/Shopify/pyinter","homepage":null,"size":150,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"ac5c5f150f7266c1a6a36de351bac49c9a8366cc","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":38884217,"name":"pyinter","full_name":"Shopify/pyinter","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/pyinter","description":"A interval package for Python which deals with interval arithmetic ","fork":true,"url":"https://api.github.com/repos/Shopify/pyinter","forks_url":"https://api.github.com/repos/Shopify/pyinter/forks","keys_url":"https://api.github.com/repos/Shopify/pyinter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/pyinter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/pyinter/teams","hooks_url":"https://api.github.com/repos/Shopify/pyinter/hooks","issue_events_url":"https://api.github.com/repos/Shopify/pyinter/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/pyinter/events","assignees_url":"https://api.github.com/repos/Shopify/pyinter/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/pyinter/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/pyinter/tags","blobs_url":"https://api.github.com/repos/Shopify/pyinter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/pyinter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/pyinter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/pyinter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/pyinter/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/pyinter/languages","stargazers_url":"https://api.github.com/repos/Shopify/pyinter/stargazers","contributors_url":"https://api.github.com/repos/Shopify/pyinter/contributors","subscribers_url":"https://api.github.com/repos/Shopify/pyinter/subscribers","subscription_url":"https://api.github.com/repos/Shopify/pyinter/subscription","commits_url":"https://api.github.com/repos/Shopify/pyinter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/pyinter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/pyinter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/pyinter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/pyinter/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/pyinter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/pyinter/merges","archive_url":"https://api.github.com/repos/Shopify/pyinter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/pyinter/downloads","issues_url":"https://api.github.com/repos/Shopify/pyinter/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/pyinter/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/pyinter/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/pyinter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/pyinter/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/pyinter/releases{/id}","created_at":"2015-07-10T14:22:31Z","updated_at":"2015-07-10T14:22:31Z","pushed_at":"2015-07-10T15:26:23Z","git_url":"git://github.com/Shopify/pyinter.git","ssh_url":"git@github.com:Shopify/pyinter.git","clone_url":"https://github.com/Shopify/pyinter.git","svn_url":"https://github.com/Shopify/pyinter","homepage":null,"size":150,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/1"},"html":{"href":"https://github.com/Shopify/pyinter/pull/1"},"issue":{"href":"https://api.github.com/repos/Shopify/pyinter/issues/1"},"comments":{"href":"https://api.github.com/repos/Shopify/pyinter/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/pyinter/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/pyinter/statuses/963243741e471685acef86d59cf977ebca336676"}}}}