{"action":"created","comment":{"url":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments/200654121","pull_request_review_id":135009252,"id":200654121,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDY1NDEyMQ==","diff_hunk":"@@ -61,6 +61,40 @@ def __init__(self, get_head, operation):\n         self._cur_attr = \"\" # Name of the new incoming operation\n         self.value = None\n \n+    def __getstate__(self):\n+        \"\"\"\n+        Converts the state of the current node\n+        to a Python dictionary.\n+\n+        Returns\n+        -------\n+        Python Dictionary\n+            A dictionary that stores all instance variables\n+            that represent the current PyRDF node.\n+\n+        \"\"\"\n+        state_dict = {'children':self.children}\n+        if not self.operation:\n+            return state_dict\n+\n+        state_dict['operation_name'] = self.operation.name","path":"PyRDF/Node.py","position":20,"original_position":20,"commit_id":"771b4efa9b67721019bb62826240246b8e26a9e5","original_commit_id":"771b4efa9b67721019bb62826240246b8e26a9e5","user":{"login":"diocas","id":2589871,"node_id":"MDQ6VXNlcjI1ODk4NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/2589871?v=4","gravatar_id":"","url":"https://api.github.com/users/diocas","html_url":"https://github.com/diocas","followers_url":"https://api.github.com/users/diocas/followers","following_url":"https://api.github.com/users/diocas/following{/other_user}","gists_url":"https://api.github.com/users/diocas/gists{/gist_id}","starred_url":"https://api.github.com/users/diocas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diocas/subscriptions","organizations_url":"https://api.github.com/users/diocas/orgs","repos_url":"https://api.github.com/users/diocas/repos","events_url":"https://api.github.com/users/diocas/events{/privacy}","received_events_url":"https://api.github.com/users/diocas/received_events","type":"User","site_admin":false},"body":"I also would say that maybe you could do something like `state_dict.update(self.operation. __dict__)`, no?\r\nIt add an extra field, but it would be cleaner.","created_at":"2018-07-06T13:32:33Z","updated_at":"2018-07-06T13:33:04Z","html_url":"https://github.com/shravan97/PyRDF/pull/39#discussion_r200654121","pull_request_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/39","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments/200654121"},"html":{"href":"https://github.com/shravan97/PyRDF/pull/39#discussion_r200654121"},"pull_request":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/shravan97/PyRDF/pulls/39","id":199144809,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MTQ0ODA5","html_url":"https://github.com/shravan97/PyRDF/pull/39","diff_url":"https://github.com/shravan97/PyRDF/pull/39.diff","patch_url":"https://github.com/shravan97/PyRDF/pull/39.patch","issue_url":"https://api.github.com/repos/shravan97/PyRDF/issues/39","number":39,"state":"open","locked":false,"title":"Make 'Node' objects serializable","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"body":"Features in this PR : \r\n* Make objects of `Node` class serializable (picklable) by implementing `__getstate__` and `__setstate__` dunder methods\r\n* Add unit tests to check `Node` serializability","created_at":"2018-07-04T05:50:59Z","updated_at":"2018-07-06T13:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"315441d8a832532ffe53591938386fe3347584ac","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/39/commits","review_comments_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/39/comments","review_comment_url":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/issues/39/comments","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/771b4efa9b67721019bb62826240246b8e26a9e5","head":{"label":"shravan97:node_serialize","ref":"node_serialize","sha":"771b4efa9b67721019bb62826240246b8e26a9e5","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"repo":{"id":133717643,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MTc2NDM=","name":"PyRDF","full_name":"shravan97/PyRDF","owner":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shravan97/PyRDF","description":"Python Library for doing RDataFrame Analysis","fork":false,"url":"https://api.github.com/repos/shravan97/PyRDF","forks_url":"https://api.github.com/repos/shravan97/PyRDF/forks","keys_url":"https://api.github.com/repos/shravan97/PyRDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shravan97/PyRDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shravan97/PyRDF/teams","hooks_url":"https://api.github.com/repos/shravan97/PyRDF/hooks","issue_events_url":"https://api.github.com/repos/shravan97/PyRDF/issues/events{/number}","events_url":"https://api.github.com/repos/shravan97/PyRDF/events","assignees_url":"https://api.github.com/repos/shravan97/PyRDF/assignees{/user}","branches_url":"https://api.github.com/repos/shravan97/PyRDF/branches{/branch}","tags_url":"https://api.github.com/repos/shravan97/PyRDF/tags","blobs_url":"https://api.github.com/repos/shravan97/PyRDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shravan97/PyRDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shravan97/PyRDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/shravan97/PyRDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/{sha}","languages_url":"https://api.github.com/repos/shravan97/PyRDF/languages","stargazers_url":"https://api.github.com/repos/shravan97/PyRDF/stargazers","contributors_url":"https://api.github.com/repos/shravan97/PyRDF/contributors","subscribers_url":"https://api.github.com/repos/shravan97/PyRDF/subscribers","subscription_url":"https://api.github.com/repos/shravan97/PyRDF/subscription","commits_url":"https://api.github.com/repos/shravan97/PyRDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/shravan97/PyRDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/shravan97/PyRDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/shravan97/PyRDF/contents/{+path}","compare_url":"https://api.github.com/repos/shravan97/PyRDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shravan97/PyRDF/merges","archive_url":"https://api.github.com/repos/shravan97/PyRDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shravan97/PyRDF/downloads","issues_url":"https://api.github.com/repos/shravan97/PyRDF/issues{/number}","pulls_url":"https://api.github.com/repos/shravan97/PyRDF/pulls{/number}","milestones_url":"https://api.github.com/repos/shravan97/PyRDF/milestones{/number}","notifications_url":"https://api.github.com/repos/shravan97/PyRDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shravan97/PyRDF/labels{/name}","releases_url":"https://api.github.com/repos/shravan97/PyRDF/releases{/id}","deployments_url":"https://api.github.com/repos/shravan97/PyRDF/deployments","created_at":"2018-05-16T20:08:04Z","updated_at":"2018-07-06T11:17:18Z","pushed_at":"2018-07-06T13:02:19Z","git_url":"git://github.com/shravan97/PyRDF.git","ssh_url":"git@github.com:shravan97/PyRDF.git","clone_url":"https://github.com/shravan97/PyRDF.git","svn_url":"https://github.com/shravan97/PyRDF","homepage":"","size":118,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"shravan97:master","ref":"master","sha":"4fba8742835c80ec3c983395679eb282f7902c93","user":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"repo":{"id":133717643,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM3MTc2NDM=","name":"PyRDF","full_name":"shravan97/PyRDF","owner":{"login":"shravan97","id":10980285,"node_id":"MDQ6VXNlcjEwOTgwMjg1","avatar_url":"https://avatars1.githubusercontent.com/u/10980285?v=4","gravatar_id":"","url":"https://api.github.com/users/shravan97","html_url":"https://github.com/shravan97","followers_url":"https://api.github.com/users/shravan97/followers","following_url":"https://api.github.com/users/shravan97/following{/other_user}","gists_url":"https://api.github.com/users/shravan97/gists{/gist_id}","starred_url":"https://api.github.com/users/shravan97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shravan97/subscriptions","organizations_url":"https://api.github.com/users/shravan97/orgs","repos_url":"https://api.github.com/users/shravan97/repos","events_url":"https://api.github.com/users/shravan97/events{/privacy}","received_events_url":"https://api.github.com/users/shravan97/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shravan97/PyRDF","description":"Python Library for doing RDataFrame Analysis","fork":false,"url":"https://api.github.com/repos/shravan97/PyRDF","forks_url":"https://api.github.com/repos/shravan97/PyRDF/forks","keys_url":"https://api.github.com/repos/shravan97/PyRDF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shravan97/PyRDF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shravan97/PyRDF/teams","hooks_url":"https://api.github.com/repos/shravan97/PyRDF/hooks","issue_events_url":"https://api.github.com/repos/shravan97/PyRDF/issues/events{/number}","events_url":"https://api.github.com/repos/shravan97/PyRDF/events","assignees_url":"https://api.github.com/repos/shravan97/PyRDF/assignees{/user}","branches_url":"https://api.github.com/repos/shravan97/PyRDF/branches{/branch}","tags_url":"https://api.github.com/repos/shravan97/PyRDF/tags","blobs_url":"https://api.github.com/repos/shravan97/PyRDF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shravan97/PyRDF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shravan97/PyRDF/git/refs{/sha}","trees_url":"https://api.github.com/repos/shravan97/PyRDF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shravan97/PyRDF/statuses/{sha}","languages_url":"https://api.github.com/repos/shravan97/PyRDF/languages","stargazers_url":"https://api.github.com/repos/shravan97/PyRDF/stargazers","contributors_url":"https://api.github.com/repos/shravan97/PyRDF/contributors","subscribers_url":"https://api.github.com/repos/shravan97/PyRDF/subscribers","subscription_url":"https://api.github.com/repos/shravan97/PyRDF/subscription","commits_url":"https://api.github.com/repos/shravan97/PyRDF/commits{/sha}","git_commits_url":"https://api.github.com/repos/shravan97/PyRDF/git/commits{/sha}","comments_url":"https://api.github.com/repos/shravan97/PyRDF/comments{/number}","issue_comment_url":"https://api.github.com/repos/shravan97/PyRDF/issues/comments{/number}","contents_url":"https://api.github.com/repos/shravan97/PyRDF/contents/{+path}","compare_url":"https://api.github.com/repos/shravan97/PyRDF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shravan97/PyRDF/merges","archive_url":"https://api.github.com/repos/shravan97/PyRDF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shravan97/PyRDF/downloads","issues_url":"https://api.github.com/repos/shravan97/PyRDF/issues{/number}","pulls_url":"https://api.github.com/repos/shravan97/PyRDF/pulls{/number}","milestones_url":"https://api.github.com/repos/shravan97/PyRDF/milestones{/number}","notifications_url":"https://api.github.com/repos/shravan97/PyRDF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shravan97/PyRDF/labels{/name}","releases_url":"https://api.github.com/repos/shravan97/PyRDF/releases{/id}","deployments_url":"https://api.github.com/repos/shravan97/PyRDF/deployments","created_at":"2018-05-16T20:08:04Z","updated_at":"2018-07-06T11:17:18Z","pushed_at":"2018-07-06T13:02:19Z","git_url":"git://github.com/shravan97/PyRDF.git","ssh_url":"git@github.com:shravan97/PyRDF.git","clone_url":"https://github.com/shravan97/PyRDF.git","svn_url":"https://github.com/shravan97/PyRDF","homepage":"","size":118,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/39"},"html":{"href":"https://github.com/shravan97/PyRDF/pull/39"},"issue":{"href":"https://api.github.com/repos/shravan97/PyRDF/issues/39"},"comments":{"href":"https://api.github.com/repos/shravan97/PyRDF/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shravan97/PyRDF/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/shravan97/PyRDF/statuses/771b4efa9b67721019bb62826240246b8e26a9e5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"diocas"}}