{"action":"created","comment":{"url":"https://api.github.com/repos/opencog/opencog/pulls/comments/28176440","id":28176440,"diff_hunk":"@@ -0,0 +1,132 @@\n+\n+# DO NOT EDIT THIS FILE! This file was automatically generated from atom\n+# definitions in types.script by the macro OPENCOG_ADD_ATOM_TYPES","path":"opencog/cython/opencog/type_constructors.pyx","position":3,"original_position":3,"commit_id":"8a0e678018969854f6d2c9993def1bd4de04ec12","original_commit_id":"8a0e678018969854f6d2c9993def1bd4de04ec12","user":{"login":"cosmoharrigan","id":2343485,"avatar_url":"https://avatars.githubusercontent.com/u/2343485?v=3","gravatar_id":"","url":"https://api.github.com/users/cosmoharrigan","html_url":"https://github.com/cosmoharrigan","followers_url":"https://api.github.com/users/cosmoharrigan/followers","following_url":"https://api.github.com/users/cosmoharrigan/following{/other_user}","gists_url":"https://api.github.com/users/cosmoharrigan/gists{/gist_id}","starred_url":"https://api.github.com/users/cosmoharrigan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosmoharrigan/subscriptions","organizations_url":"https://api.github.com/users/cosmoharrigan/orgs","repos_url":"https://api.github.com/users/cosmoharrigan/repos","events_url":"https://api.github.com/users/cosmoharrigan/events{/privacy}","received_events_url":"https://api.github.com/users/cosmoharrigan/received_events","type":"User","site_admin":false},"body":"Okay, that makes sense. Thanks. I can see how that could be helpful.","created_at":"2015-04-10T20:12:06Z","updated_at":"2015-04-10T20:12:06Z","html_url":"https://github.com/opencog/opencog/pull/1516#discussion_r28176440","pull_request_url":"https://api.github.com/repos/opencog/opencog/pulls/1516","_links":{"self":{"href":"https://api.github.com/repos/opencog/opencog/pulls/comments/28176440"},"html":{"href":"https://github.com/opencog/opencog/pull/1516#discussion_r28176440"},"pull_request":{"href":"https://api.github.com/repos/opencog/opencog/pulls/1516"}}},"pull_request":{"url":"https://api.github.com/repos/opencog/opencog/pulls/1516","id":33074157,"html_url":"https://github.com/opencog/opencog/pull/1516","diff_url":"https://github.com/opencog/opencog/pull/1516.diff","patch_url":"https://github.com/opencog/opencog/pull/1516.patch","issue_url":"https://api.github.com/repos/opencog/opencog/issues/1516","number":1516,"state":"open","locked":false,"title":"Added support for scheme-style python type construction","user":{"login":"inflector","id":1048706,"avatar_url":"https://avatars.githubusercontent.com/u/1048706?v=3","gravatar_id":"","url":"https://api.github.com/users/inflector","html_url":"https://github.com/inflector","followers_url":"https://api.github.com/users/inflector/followers","following_url":"https://api.github.com/users/inflector/following{/other_user}","gists_url":"https://api.github.com/users/inflector/gists{/gist_id}","starred_url":"https://api.github.com/users/inflector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inflector/subscriptions","organizations_url":"https://api.github.com/users/inflector/orgs","repos_url":"https://api.github.com/users/inflector/repos","events_url":"https://api.github.com/users/inflector/events{/privacy}","received_events_url":"https://api.github.com/users/inflector/received_events","type":"User","site_admin":false},"body":"Yes, you can now add types like:\r\n\r\n```\r\nresult = execute_atom(atomspace, \r\n        ExecutionOutputLink( \r\n            GroundedSchemaNode(\"py: add_link\"),\r\n            ListLink(\r\n                ConceptNode(\"one\"),\r\n                ConceptNode(\"two\") \r\n            )\r\n        )\r\n    )\r\nlist_link = ListLink(\r\n        ConceptNode(\"one\"),\r\n        ConceptNode(\"two\")\r\n    )\r\nassert_equals(result, list_link)\r\n```\r\n\r\njust by adding:\r\n```\r\nfrom opencog.type_constructors import *\r\n```\r\nand:\r\n```\r\ninitialize_opencog(atomspace)\r\n```","created_at":"2015-04-10T19:03:06Z","updated_at":"2015-04-10T20:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"509d479ec50ea73f326884aadd65674f2141ffe9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opencog/opencog/pulls/1516/commits","review_comments_url":"https://api.github.com/repos/opencog/opencog/pulls/1516/comments","review_comment_url":"https://api.github.com/repos/opencog/opencog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencog/opencog/issues/1516/comments","statuses_url":"https://api.github.com/repos/opencog/opencog/statuses/8a0e678018969854f6d2c9993def1bd4de04ec12","head":{"label":"inflector:execute-evaluate","ref":"execute-evaluate","sha":"8a0e678018969854f6d2c9993def1bd4de04ec12","user":{"login":"inflector","id":1048706,"avatar_url":"https://avatars.githubusercontent.com/u/1048706?v=3","gravatar_id":"","url":"https://api.github.com/users/inflector","html_url":"https://github.com/inflector","followers_url":"https://api.github.com/users/inflector/followers","following_url":"https://api.github.com/users/inflector/following{/other_user}","gists_url":"https://api.github.com/users/inflector/gists{/gist_id}","starred_url":"https://api.github.com/users/inflector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inflector/subscriptions","organizations_url":"https://api.github.com/users/inflector/orgs","repos_url":"https://api.github.com/users/inflector/repos","events_url":"https://api.github.com/users/inflector/events{/privacy}","received_events_url":"https://api.github.com/users/inflector/received_events","type":"User","site_admin":false},"repo":{"id":30973962,"name":"opencog","full_name":"inflector/opencog","owner":{"login":"inflector","id":1048706,"avatar_url":"https://avatars.githubusercontent.com/u/1048706?v=3","gravatar_id":"","url":"https://api.github.com/users/inflector","html_url":"https://github.com/inflector","followers_url":"https://api.github.com/users/inflector/followers","following_url":"https://api.github.com/users/inflector/following{/other_user}","gists_url":"https://api.github.com/users/inflector/gists{/gist_id}","starred_url":"https://api.github.com/users/inflector/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inflector/subscriptions","organizations_url":"https://api.github.com/users/inflector/orgs","repos_url":"https://api.github.com/users/inflector/repos","events_url":"https://api.github.com/users/inflector/events{/privacy}","received_events_url":"https://api.github.com/users/inflector/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inflector/opencog","description":"A framework for integrated Artificial Intelligence & Artificial General Intelligence (AGI)","fork":true,"url":"https://api.github.com/repos/inflector/opencog","forks_url":"https://api.github.com/repos/inflector/opencog/forks","keys_url":"https://api.github.com/repos/inflector/opencog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inflector/opencog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inflector/opencog/teams","hooks_url":"https://api.github.com/repos/inflector/opencog/hooks","issue_events_url":"https://api.github.com/repos/inflector/opencog/issues/events{/number}","events_url":"https://api.github.com/repos/inflector/opencog/events","assignees_url":"https://api.github.com/repos/inflector/opencog/assignees{/user}","branches_url":"https://api.github.com/repos/inflector/opencog/branches{/branch}","tags_url":"https://api.github.com/repos/inflector/opencog/tags","blobs_url":"https://api.github.com/repos/inflector/opencog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inflector/opencog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inflector/opencog/git/refs{/sha}","trees_url":"https://api.github.com/repos/inflector/opencog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inflector/opencog/statuses/{sha}","languages_url":"https://api.github.com/repos/inflector/opencog/languages","stargazers_url":"https://api.github.com/repos/inflector/opencog/stargazers","contributors_url":"https://api.github.com/repos/inflector/opencog/contributors","subscribers_url":"https://api.github.com/repos/inflector/opencog/subscribers","subscription_url":"https://api.github.com/repos/inflector/opencog/subscription","commits_url":"https://api.github.com/repos/inflector/opencog/commits{/sha}","git_commits_url":"https://api.github.com/repos/inflector/opencog/git/commits{/sha}","comments_url":"https://api.github.com/repos/inflector/opencog/comments{/number}","issue_comment_url":"https://api.github.com/repos/inflector/opencog/issues/comments{/number}","contents_url":"https://api.github.com/repos/inflector/opencog/contents/{+path}","compare_url":"https://api.github.com/repos/inflector/opencog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inflector/opencog/merges","archive_url":"https://api.github.com/repos/inflector/opencog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inflector/opencog/downloads","issues_url":"https://api.github.com/repos/inflector/opencog/issues{/number}","pulls_url":"https://api.github.com/repos/inflector/opencog/pulls{/number}","milestones_url":"https://api.github.com/repos/inflector/opencog/milestones{/number}","notifications_url":"https://api.github.com/repos/inflector/opencog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inflector/opencog/labels{/name}","releases_url":"https://api.github.com/repos/inflector/opencog/releases{/id}","created_at":"2015-02-18T16:26:02Z","updated_at":"2015-04-09T19:00:01Z","pushed_at":"2015-04-10T18:52:33Z","git_url":"git://github.com/inflector/opencog.git","ssh_url":"git@github.com:inflector/opencog.git","clone_url":"https://github.com/inflector/opencog.git","svn_url":"https://github.com/inflector/opencog","homepage":"http://wiki.opencog.org/w/Development","size":137793,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"opencog:master","ref":"master","sha":"d6493677042b0712fc764236079f4d4de8346bf4","user":{"login":"opencog","id":2109913,"avatar_url":"https://avatars.githubusercontent.com/u/2109913?v=3","gravatar_id":"","url":"https://api.github.com/users/opencog","html_url":"https://github.com/opencog","followers_url":"https://api.github.com/users/opencog/followers","following_url":"https://api.github.com/users/opencog/following{/other_user}","gists_url":"https://api.github.com/users/opencog/gists{/gist_id}","starred_url":"https://api.github.com/users/opencog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencog/subscriptions","organizations_url":"https://api.github.com/users/opencog/orgs","repos_url":"https://api.github.com/users/opencog/repos","events_url":"https://api.github.com/users/opencog/events{/privacy}","received_events_url":"https://api.github.com/users/opencog/received_events","type":"Organization","site_admin":false},"repo":{"id":6365343,"name":"opencog","full_name":"opencog/opencog","owner":{"login":"opencog","id":2109913,"avatar_url":"https://avatars.githubusercontent.com/u/2109913?v=3","gravatar_id":"","url":"https://api.github.com/users/opencog","html_url":"https://github.com/opencog","followers_url":"https://api.github.com/users/opencog/followers","following_url":"https://api.github.com/users/opencog/following{/other_user}","gists_url":"https://api.github.com/users/opencog/gists{/gist_id}","starred_url":"https://api.github.com/users/opencog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencog/subscriptions","organizations_url":"https://api.github.com/users/opencog/orgs","repos_url":"https://api.github.com/users/opencog/repos","events_url":"https://api.github.com/users/opencog/events{/privacy}","received_events_url":"https://api.github.com/users/opencog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencog/opencog","description":"A framework for integrated Artificial Intelligence & Artificial General Intelligence (AGI)","fork":false,"url":"https://api.github.com/repos/opencog/opencog","forks_url":"https://api.github.com/repos/opencog/opencog/forks","keys_url":"https://api.github.com/repos/opencog/opencog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencog/opencog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencog/opencog/teams","hooks_url":"https://api.github.com/repos/opencog/opencog/hooks","issue_events_url":"https://api.github.com/repos/opencog/opencog/issues/events{/number}","events_url":"https://api.github.com/repos/opencog/opencog/events","assignees_url":"https://api.github.com/repos/opencog/opencog/assignees{/user}","branches_url":"https://api.github.com/repos/opencog/opencog/branches{/branch}","tags_url":"https://api.github.com/repos/opencog/opencog/tags","blobs_url":"https://api.github.com/repos/opencog/opencog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencog/opencog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencog/opencog/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencog/opencog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencog/opencog/statuses/{sha}","languages_url":"https://api.github.com/repos/opencog/opencog/languages","stargazers_url":"https://api.github.com/repos/opencog/opencog/stargazers","contributors_url":"https://api.github.com/repos/opencog/opencog/contributors","subscribers_url":"https://api.github.com/repos/opencog/opencog/subscribers","subscription_url":"https://api.github.com/repos/opencog/opencog/subscription","commits_url":"https://api.github.com/repos/opencog/opencog/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencog/opencog/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencog/opencog/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencog/opencog/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencog/opencog/contents/{+path}","compare_url":"https://api.github.com/repos/opencog/opencog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencog/opencog/merges","archive_url":"https://api.github.com/repos/opencog/opencog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencog/opencog/downloads","issues_url":"https://api.github.com/repos/opencog/opencog/issues{/number}","pulls_url":"https://api.github.com/repos/opencog/opencog/pulls{/number}","milestones_url":"https://api.github.com/repos/opencog/opencog/milestones{/number}","notifications_url":"https://api.github.com/repos/opencog/opencog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencog/opencog/labels{/name}","releases_url":"https://api.github.com/repos/opencog/opencog/releases{/id}","created_at":"2012-10-24T06:10:15Z","updated_at":"2015-04-10T11:32:27Z","pushed_at":"2015-04-10T19:03:06Z","git_url":"git://github.com/opencog/opencog.git","ssh_url":"git@github.com:opencog/opencog.git","clone_url":"https://github.com/opencog/opencog.git","svn_url":"https://github.com/opencog/opencog","homepage":"http://wiki.opencog.org/w/Development","size":149664,"stargazers_count":553,"watchers_count":553,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":275,"mirror_url":null,"open_issues_count":93,"forks":275,"open_issues":93,"watchers":553,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencog/opencog/pulls/1516"},"html":{"href":"https://github.com/opencog/opencog/pull/1516"},"issue":{"href":"https://api.github.com/repos/opencog/opencog/issues/1516"},"comments":{"href":"https://api.github.com/repos/opencog/opencog/issues/1516/comments"},"review_comments":{"href":"https://api.github.com/repos/opencog/opencog/pulls/1516/comments"},"review_comment":{"href":"https://api.github.com/repos/opencog/opencog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencog/opencog/pulls/1516/commits"},"statuses":{"href":"https://api.github.com/repos/opencog/opencog/statuses/8a0e678018969854f6d2c9993def1bd4de04ec12"}}}}