{"action":"created","comment":{"url":"https://api.github.com/repos/SciTools/iris/pulls/comments/39026299","id":39026299,"diff_hunk":"@@ -146,6 +146,9 @@ def __new__(cls, coord, dims):\n                                                       kwargs)\n         return metadata\n \n+    def __hash__(self):\n+        return hash(tuple(self))","path":"lib/iris/_concatenate.py","position":5,"original_position":5,"commit_id":"5194a3111f460238b816326d6a7c496f9fc28174","original_commit_id":"5194a3111f460238b816326d6a7c496f9fc28174","user":{"login":"rhattersley","id":917914,"avatar_url":"https://avatars.githubusercontent.com/u/917914?v=3","gravatar_id":"","url":"https://api.github.com/users/rhattersley","html_url":"https://github.com/rhattersley","followers_url":"https://api.github.com/users/rhattersley/followers","following_url":"https://api.github.com/users/rhattersley/following{/other_user}","gists_url":"https://api.github.com/users/rhattersley/gists{/gist_id}","starred_url":"https://api.github.com/users/rhattersley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhattersley/subscriptions","organizations_url":"https://api.github.com/users/rhattersley/orgs","repos_url":"https://api.github.com/users/rhattersley/repos","events_url":"https://api.github.com/users/rhattersley/events{/privacy}","received_events_url":"https://api.github.com/users/rhattersley/received_events","type":"User","site_admin":false},"body":"So how about: `super(_CoordMetaData, self).__hash__()`?","created_at":"2015-09-09T10:11:04Z","updated_at":"2015-09-09T10:11:04Z","html_url":"https://github.com/SciTools/iris/pull/1772#discussion_r39026299","pull_request_url":"https://api.github.com/repos/SciTools/iris/pulls/1772","_links":{"self":{"href":"https://api.github.com/repos/SciTools/iris/pulls/comments/39026299"},"html":{"href":"https://github.com/SciTools/iris/pull/1772#discussion_r39026299"},"pull_request":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1772"}}},"pull_request":{"url":"https://api.github.com/repos/SciTools/iris/pulls/1772","id":44380653,"html_url":"https://github.com/SciTools/iris/pull/1772","diff_url":"https://github.com/SciTools/iris/pull/1772.diff","patch_url":"https://github.com/SciTools/iris/pull/1772.patch","issue_url":"https://api.github.com/repos/SciTools/iris/issues/1772","number":1772,"state":"open","locked":false,"title":"Python 3 hashing","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"body":"Several classes must be hashable because they are used as dictionary keys. This is generally implemented as a hash of the same information used for `__eq__`, or if that's not defined, the `id`.","created_at":"2015-09-07T21:59:08Z","updated_at":"2015-09-09T10:11:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08a82fdaa3a226006432d66a0e51dddae2b0d4c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SciTools/iris/pulls/1772/commits","review_comments_url":"https://api.github.com/repos/SciTools/iris/pulls/1772/comments","review_comment_url":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SciTools/iris/issues/1772/comments","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/5194a3111f460238b816326d6a7c496f9fc28174","head":{"label":"QuLogic:py3k-hash","ref":"py3k-hash","sha":"5194a3111f460238b816326d6a7c496f9fc28174","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"repo":{"id":22200511,"name":"iris","full_name":"QuLogic/iris","owner":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/QuLogic/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":true,"url":"https://api.github.com/repos/QuLogic/iris","forks_url":"https://api.github.com/repos/QuLogic/iris/forks","keys_url":"https://api.github.com/repos/QuLogic/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/QuLogic/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/QuLogic/iris/teams","hooks_url":"https://api.github.com/repos/QuLogic/iris/hooks","issue_events_url":"https://api.github.com/repos/QuLogic/iris/issues/events{/number}","events_url":"https://api.github.com/repos/QuLogic/iris/events","assignees_url":"https://api.github.com/repos/QuLogic/iris/assignees{/user}","branches_url":"https://api.github.com/repos/QuLogic/iris/branches{/branch}","tags_url":"https://api.github.com/repos/QuLogic/iris/tags","blobs_url":"https://api.github.com/repos/QuLogic/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/QuLogic/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/QuLogic/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/QuLogic/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/QuLogic/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/QuLogic/iris/languages","stargazers_url":"https://api.github.com/repos/QuLogic/iris/stargazers","contributors_url":"https://api.github.com/repos/QuLogic/iris/contributors","subscribers_url":"https://api.github.com/repos/QuLogic/iris/subscribers","subscription_url":"https://api.github.com/repos/QuLogic/iris/subscription","commits_url":"https://api.github.com/repos/QuLogic/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/QuLogic/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/QuLogic/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/QuLogic/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/QuLogic/iris/contents/{+path}","compare_url":"https://api.github.com/repos/QuLogic/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/QuLogic/iris/merges","archive_url":"https://api.github.com/repos/QuLogic/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/QuLogic/iris/downloads","issues_url":"https://api.github.com/repos/QuLogic/iris/issues{/number}","pulls_url":"https://api.github.com/repos/QuLogic/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/QuLogic/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/QuLogic/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/QuLogic/iris/labels{/name}","releases_url":"https://api.github.com/repos/QuLogic/iris/releases{/id}","created_at":"2014-07-24T05:41:41Z","updated_at":"2015-04-17T03:32:13Z","pushed_at":"2015-09-09T08:20:41Z","git_url":"git://github.com/QuLogic/iris.git","ssh_url":"git@github.com:QuLogic/iris.git","clone_url":"https://github.com/QuLogic/iris.git","svn_url":"https://github.com/QuLogic/iris","homepage":"http://scitools.org.uk/iris/","size":98576,"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":"SciTools:master","ref":"master","sha":"9fdf7a4939ea14d3530870608ab9e448a40ed57f","user":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"repo":{"id":5312648,"name":"iris","full_name":"SciTools/iris","owner":{"login":"SciTools","id":1391487,"avatar_url":"https://avatars.githubusercontent.com/u/1391487?v=3","gravatar_id":"","url":"https://api.github.com/users/SciTools","html_url":"https://github.com/SciTools","followers_url":"https://api.github.com/users/SciTools/followers","following_url":"https://api.github.com/users/SciTools/following{/other_user}","gists_url":"https://api.github.com/users/SciTools/gists{/gist_id}","starred_url":"https://api.github.com/users/SciTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciTools/subscriptions","organizations_url":"https://api.github.com/users/SciTools/orgs","repos_url":"https://api.github.com/users/SciTools/repos","events_url":"https://api.github.com/users/SciTools/events{/privacy}","received_events_url":"https://api.github.com/users/SciTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciTools/iris","description":"A powerful, easy to use, and community-driven Python library for analysing and visualising meteorological and oceanographic data sets.","fork":false,"url":"https://api.github.com/repos/SciTools/iris","forks_url":"https://api.github.com/repos/SciTools/iris/forks","keys_url":"https://api.github.com/repos/SciTools/iris/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciTools/iris/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciTools/iris/teams","hooks_url":"https://api.github.com/repos/SciTools/iris/hooks","issue_events_url":"https://api.github.com/repos/SciTools/iris/issues/events{/number}","events_url":"https://api.github.com/repos/SciTools/iris/events","assignees_url":"https://api.github.com/repos/SciTools/iris/assignees{/user}","branches_url":"https://api.github.com/repos/SciTools/iris/branches{/branch}","tags_url":"https://api.github.com/repos/SciTools/iris/tags","blobs_url":"https://api.github.com/repos/SciTools/iris/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciTools/iris/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciTools/iris/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciTools/iris/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciTools/iris/statuses/{sha}","languages_url":"https://api.github.com/repos/SciTools/iris/languages","stargazers_url":"https://api.github.com/repos/SciTools/iris/stargazers","contributors_url":"https://api.github.com/repos/SciTools/iris/contributors","subscribers_url":"https://api.github.com/repos/SciTools/iris/subscribers","subscription_url":"https://api.github.com/repos/SciTools/iris/subscription","commits_url":"https://api.github.com/repos/SciTools/iris/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciTools/iris/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciTools/iris/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciTools/iris/issues/comments{/number}","contents_url":"https://api.github.com/repos/SciTools/iris/contents/{+path}","compare_url":"https://api.github.com/repos/SciTools/iris/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciTools/iris/merges","archive_url":"https://api.github.com/repos/SciTools/iris/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciTools/iris/downloads","issues_url":"https://api.github.com/repos/SciTools/iris/issues{/number}","pulls_url":"https://api.github.com/repos/SciTools/iris/pulls{/number}","milestones_url":"https://api.github.com/repos/SciTools/iris/milestones{/number}","notifications_url":"https://api.github.com/repos/SciTools/iris/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciTools/iris/labels{/name}","releases_url":"https://api.github.com/repos/SciTools/iris/releases{/id}","created_at":"2012-08-06T10:09:14Z","updated_at":"2015-09-03T22:01:31Z","pushed_at":"2015-09-09T08:58:28Z","git_url":"git://github.com/SciTools/iris.git","ssh_url":"git@github.com:SciTools/iris.git","clone_url":"https://github.com/SciTools/iris.git","svn_url":"https://github.com/SciTools/iris","homepage":"http://scitools.org.uk/iris/","size":148269,"stargazers_count":101,"watchers_count":101,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":183,"forks":78,"open_issues":183,"watchers":101,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1772"},"html":{"href":"https://github.com/SciTools/iris/pull/1772"},"issue":{"href":"https://api.github.com/repos/SciTools/iris/issues/1772"},"comments":{"href":"https://api.github.com/repos/SciTools/iris/issues/1772/comments"},"review_comments":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1772/comments"},"review_comment":{"href":"https://api.github.com/repos/SciTools/iris/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SciTools/iris/pulls/1772/commits"},"statuses":{"href":"https://api.github.com/repos/SciTools/iris/statuses/5194a3111f460238b816326d6a7c496f9fc28174"}}}}