{"action":"created","comment":{"url":"https://api.github.com/repos/symengine/symengine.py/pulls/comments/133762820","pull_request_review_id":56981130,"id":133762820,"diff_hunk":"@@ -37,6 +37,12 @@ cdef c2py(RCP[const symengine.Basic] o):\n     elif (symengine.is_a_Pow(deref(o))):\n         r = Basic.__new__(Pow)\n     elif (symengine.is_a_Integer(deref(o))):\n+        if (deref(symengine.rcp_static_cast_Integer(o)).is_zero()):\n+            return S.Zero\n+        elif (deref(symengine.rcp_static_cast_Integer(o)).is_one()):\n+            return S.One\n+        elif (deref(symengine.rcp_static_cast_Integer(o)).is_minus_one()):\n+            return S.NegativeOne","path":"symengine/lib/symengine_wrapper.pyx","position":9,"original_position":9,"commit_id":"7002f21aa0b59955ddd5e3eec04e43204a325c2d","original_commit_id":"7002f21aa0b59955ddd5e3eec04e43204a325c2d","user":{"login":"isuruf","id":5234427,"avatar_url":"https://avatars3.githubusercontent.com/u/5234427?v=4","gravatar_id":"","url":"https://api.github.com/users/isuruf","html_url":"https://github.com/isuruf","followers_url":"https://api.github.com/users/isuruf/followers","following_url":"https://api.github.com/users/isuruf/following{/other_user}","gists_url":"https://api.github.com/users/isuruf/gists{/gist_id}","starred_url":"https://api.github.com/users/isuruf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isuruf/subscriptions","organizations_url":"https://api.github.com/users/isuruf/orgs","repos_url":"https://api.github.com/users/isuruf/repos","events_url":"https://api.github.com/users/isuruf/events{/privacy}","received_events_url":"https://api.github.com/users/isuruf/received_events","type":"User","site_admin":false},"body":"You'll have to do it outside of `c2py`.","created_at":"2017-08-17T16:26:03Z","updated_at":"2017-08-17T16:26:03Z","html_url":"https://github.com/symengine/symengine.py/pull/178#discussion_r133762820","pull_request_url":"https://api.github.com/repos/symengine/symengine.py/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/comments/133762820"},"html":{"href":"https://github.com/symengine/symengine.py/pull/178#discussion_r133762820"},"pull_request":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/symengine/symengine.py/pulls/178","id":132141006,"html_url":"https://github.com/symengine/symengine.py/pull/178","diff_url":"https://github.com/symengine/symengine.py/pull/178.diff","patch_url":"https://github.com/symengine/symengine.py/pull/178.patch","issue_url":"https://api.github.com/repos/symengine/symengine.py/issues/178","number":178,"state":"open","locked":false,"title":"[WIP] Implemented Singleton Pattern","user":{"login":"ShikharJ","id":19722966,"avatar_url":"https://avatars2.githubusercontent.com/u/19722966?v=4","gravatar_id":"","url":"https://api.github.com/users/ShikharJ","html_url":"https://github.com/ShikharJ","followers_url":"https://api.github.com/users/ShikharJ/followers","following_url":"https://api.github.com/users/ShikharJ/following{/other_user}","gists_url":"https://api.github.com/users/ShikharJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ShikharJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShikharJ/subscriptions","organizations_url":"https://api.github.com/users/ShikharJ/orgs","repos_url":"https://api.github.com/users/ShikharJ/repos","events_url":"https://api.github.com/users/ShikharJ/events{/privacy}","received_events_url":"https://api.github.com/users/ShikharJ/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-24T20:45:15Z","updated_at":"2017-08-17T16:26:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f9469693b5953039c09423d7e055bf28254109ff","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/symengine/symengine.py/pulls/178/commits","review_comments_url":"https://api.github.com/repos/symengine/symengine.py/pulls/178/comments","review_comment_url":"https://api.github.com/repos/symengine/symengine.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symengine/symengine.py/issues/178/comments","statuses_url":"https://api.github.com/repos/symengine/symengine.py/statuses/7002f21aa0b59955ddd5e3eec04e43204a325c2d","head":{"label":"ShikharJ:Singleton","ref":"Singleton","sha":"7002f21aa0b59955ddd5e3eec04e43204a325c2d","user":{"login":"ShikharJ","id":19722966,"avatar_url":"https://avatars2.githubusercontent.com/u/19722966?v=4","gravatar_id":"","url":"https://api.github.com/users/ShikharJ","html_url":"https://github.com/ShikharJ","followers_url":"https://api.github.com/users/ShikharJ/followers","following_url":"https://api.github.com/users/ShikharJ/following{/other_user}","gists_url":"https://api.github.com/users/ShikharJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ShikharJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShikharJ/subscriptions","organizations_url":"https://api.github.com/users/ShikharJ/orgs","repos_url":"https://api.github.com/users/ShikharJ/repos","events_url":"https://api.github.com/users/ShikharJ/events{/privacy}","received_events_url":"https://api.github.com/users/ShikharJ/received_events","type":"User","site_admin":false},"repo":{"id":81672411,"name":"symengine.py","full_name":"ShikharJ/symengine.py","owner":{"login":"ShikharJ","id":19722966,"avatar_url":"https://avatars2.githubusercontent.com/u/19722966?v=4","gravatar_id":"","url":"https://api.github.com/users/ShikharJ","html_url":"https://github.com/ShikharJ","followers_url":"https://api.github.com/users/ShikharJ/followers","following_url":"https://api.github.com/users/ShikharJ/following{/other_user}","gists_url":"https://api.github.com/users/ShikharJ/gists{/gist_id}","starred_url":"https://api.github.com/users/ShikharJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShikharJ/subscriptions","organizations_url":"https://api.github.com/users/ShikharJ/orgs","repos_url":"https://api.github.com/users/ShikharJ/repos","events_url":"https://api.github.com/users/ShikharJ/events{/privacy}","received_events_url":"https://api.github.com/users/ShikharJ/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ShikharJ/symengine.py","description":"Python wrappers for SymEngine","fork":true,"url":"https://api.github.com/repos/ShikharJ/symengine.py","forks_url":"https://api.github.com/repos/ShikharJ/symengine.py/forks","keys_url":"https://api.github.com/repos/ShikharJ/symengine.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShikharJ/symengine.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShikharJ/symengine.py/teams","hooks_url":"https://api.github.com/repos/ShikharJ/symengine.py/hooks","issue_events_url":"https://api.github.com/repos/ShikharJ/symengine.py/issues/events{/number}","events_url":"https://api.github.com/repos/ShikharJ/symengine.py/events","assignees_url":"https://api.github.com/repos/ShikharJ/symengine.py/assignees{/user}","branches_url":"https://api.github.com/repos/ShikharJ/symengine.py/branches{/branch}","tags_url":"https://api.github.com/repos/ShikharJ/symengine.py/tags","blobs_url":"https://api.github.com/repos/ShikharJ/symengine.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShikharJ/symengine.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShikharJ/symengine.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShikharJ/symengine.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShikharJ/symengine.py/statuses/{sha}","languages_url":"https://api.github.com/repos/ShikharJ/symengine.py/languages","stargazers_url":"https://api.github.com/repos/ShikharJ/symengine.py/stargazers","contributors_url":"https://api.github.com/repos/ShikharJ/symengine.py/contributors","subscribers_url":"https://api.github.com/repos/ShikharJ/symengine.py/subscribers","subscription_url":"https://api.github.com/repos/ShikharJ/symengine.py/subscription","commits_url":"https://api.github.com/repos/ShikharJ/symengine.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShikharJ/symengine.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShikharJ/symengine.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShikharJ/symengine.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShikharJ/symengine.py/contents/{+path}","compare_url":"https://api.github.com/repos/ShikharJ/symengine.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShikharJ/symengine.py/merges","archive_url":"https://api.github.com/repos/ShikharJ/symengine.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShikharJ/symengine.py/downloads","issues_url":"https://api.github.com/repos/ShikharJ/symengine.py/issues{/number}","pulls_url":"https://api.github.com/repos/ShikharJ/symengine.py/pulls{/number}","milestones_url":"https://api.github.com/repos/ShikharJ/symengine.py/milestones{/number}","notifications_url":"https://api.github.com/repos/ShikharJ/symengine.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShikharJ/symengine.py/labels{/name}","releases_url":"https://api.github.com/repos/ShikharJ/symengine.py/releases{/id}","deployments_url":"https://api.github.com/repos/ShikharJ/symengine.py/deployments","created_at":"2017-02-11T18:18:48Z","updated_at":"2017-02-11T18:18:50Z","pushed_at":"2017-08-17T16:20:58Z","git_url":"git://github.com/ShikharJ/symengine.py.git","ssh_url":"git@github.com:ShikharJ/symengine.py.git","clone_url":"https://github.com/ShikharJ/symengine.py.git","svn_url":"https://github.com/ShikharJ/symengine.py","homepage":null,"size":1245,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symengine:master","ref":"master","sha":"445559ef72d07c9a9be0c85f957fd2d40dc5610e","user":{"login":"symengine","id":11509221,"avatar_url":"https://avatars2.githubusercontent.com/u/11509221?v=4","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"repo":{"id":41312700,"name":"symengine.py","full_name":"symengine/symengine.py","owner":{"login":"symengine","id":11509221,"avatar_url":"https://avatars2.githubusercontent.com/u/11509221?v=4","gravatar_id":"","url":"https://api.github.com/users/symengine","html_url":"https://github.com/symengine","followers_url":"https://api.github.com/users/symengine/followers","following_url":"https://api.github.com/users/symengine/following{/other_user}","gists_url":"https://api.github.com/users/symengine/gists{/gist_id}","starred_url":"https://api.github.com/users/symengine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symengine/subscriptions","organizations_url":"https://api.github.com/users/symengine/orgs","repos_url":"https://api.github.com/users/symengine/repos","events_url":"https://api.github.com/users/symengine/events{/privacy}","received_events_url":"https://api.github.com/users/symengine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symengine/symengine.py","description":"Python wrappers for SymEngine","fork":false,"url":"https://api.github.com/repos/symengine/symengine.py","forks_url":"https://api.github.com/repos/symengine/symengine.py/forks","keys_url":"https://api.github.com/repos/symengine/symengine.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symengine/symengine.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symengine/symengine.py/teams","hooks_url":"https://api.github.com/repos/symengine/symengine.py/hooks","issue_events_url":"https://api.github.com/repos/symengine/symengine.py/issues/events{/number}","events_url":"https://api.github.com/repos/symengine/symengine.py/events","assignees_url":"https://api.github.com/repos/symengine/symengine.py/assignees{/user}","branches_url":"https://api.github.com/repos/symengine/symengine.py/branches{/branch}","tags_url":"https://api.github.com/repos/symengine/symengine.py/tags","blobs_url":"https://api.github.com/repos/symengine/symengine.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symengine/symengine.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symengine/symengine.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/symengine/symengine.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symengine/symengine.py/statuses/{sha}","languages_url":"https://api.github.com/repos/symengine/symengine.py/languages","stargazers_url":"https://api.github.com/repos/symengine/symengine.py/stargazers","contributors_url":"https://api.github.com/repos/symengine/symengine.py/contributors","subscribers_url":"https://api.github.com/repos/symengine/symengine.py/subscribers","subscription_url":"https://api.github.com/repos/symengine/symengine.py/subscription","commits_url":"https://api.github.com/repos/symengine/symengine.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/symengine/symengine.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/symengine/symengine.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/symengine/symengine.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/symengine/symengine.py/contents/{+path}","compare_url":"https://api.github.com/repos/symengine/symengine.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symengine/symengine.py/merges","archive_url":"https://api.github.com/repos/symengine/symengine.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symengine/symengine.py/downloads","issues_url":"https://api.github.com/repos/symengine/symengine.py/issues{/number}","pulls_url":"https://api.github.com/repos/symengine/symengine.py/pulls{/number}","milestones_url":"https://api.github.com/repos/symengine/symengine.py/milestones{/number}","notifications_url":"https://api.github.com/repos/symengine/symengine.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symengine/symengine.py/labels{/name}","releases_url":"https://api.github.com/repos/symengine/symengine.py/releases{/id}","deployments_url":"https://api.github.com/repos/symengine/symengine.py/deployments","created_at":"2015-08-24T15:56:54Z","updated_at":"2017-08-14T00:33:17Z","pushed_at":"2017-08-17T16:21:00Z","git_url":"git://github.com/symengine/symengine.py.git","ssh_url":"git@github.com:symengine/symengine.py.git","clone_url":"https://github.com/symengine/symengine.py.git","svn_url":"https://github.com/symengine/symengine.py","homepage":null,"size":1145,"stargazers_count":46,"watchers_count":46,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":20,"forks":24,"open_issues":20,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/178"},"html":{"href":"https://github.com/symengine/symengine.py/pull/178"},"issue":{"href":"https://api.github.com/repos/symengine/symengine.py/issues/178"},"comments":{"href":"https://api.github.com/repos/symengine/symengine.py/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symengine/symengine.py/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/symengine/symengine.py/statuses/7002f21aa0b59955ddd5e3eec04e43204a325c2d"}}}}
{"actor":{"display_login":"isuruf"}}