{"action":"created","comment":{"url":"https://api.github.com/repos/ldmud/ldmud/pulls/comments/64898747","id":64898747,"diff_hunk":"@@ -169,6 +169,58 @@ python_register_efun (PyObject *module, PyObject *args, PyObject *kwds)\n \n /*-------------------------------------------------------------------------*/\n static PyObject*\n+python_unregister_efun (PyObject *module, PyObject *args, PyObject *kwds)\n+\n+/* Python function to remove a efun registration.\n+ * We just set the entry in the python_efun_table to NULL.\n+ * The identifier stays, because we want to reuse its index,\n+ * when this efun will be re-registered.\n+ *\n+ * Already compiled code will still reference the python efun\n+ * and will produce errors.\n+ */\n+\n+{\n+    static char *kwlist[] = { \"name\", NULL};\n+\n+    char *name;\n+    ident_t *ident;\n+\n+    if (!PyArg_ParseTupleAndKeywords(args, kwds, \"s:unregister_efun\", kwlist, &name))\n+        return NULL;\n+\n+    ident = find_shared_identifier(name, I_TYPE_GLOBAL, 0);\n+    if (!ident || ident->type == I_TYPE_UNKNOWN)\n+    {\n+        /* No identifier there, we're done. */\n+        Py_INCREF(Py_None);\n+        return Py_None;\n+    }\n+\n+    /* There is higher level identifier?\n+     * Should only happen during compile time, and that we forbid.\n+     */\n+    if (ident->type != I_TYPE_GLOBAL)\n+    {\n+        PyErr_SetString(PyExc_RuntimeError, \"couldn't create efun entry\");","path":"src/pkg-python.c","position":null,"original_position":37,"commit_id":"4c8c494d838a3f270393f49e37573d1696c10559","original_commit_id":"e9d333903aa4877bc386cd30600e882d6c07f47d","user":{"login":"zesstra","id":131563,"avatar_url":"https://avatars.githubusercontent.com/u/131563?v=3","gravatar_id":"","url":"https://api.github.com/users/zesstra","html_url":"https://github.com/zesstra","followers_url":"https://api.github.com/users/zesstra/followers","following_url":"https://api.github.com/users/zesstra/following{/other_user}","gists_url":"https://api.github.com/users/zesstra/gists{/gist_id}","starred_url":"https://api.github.com/users/zesstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zesstra/subscriptions","organizations_url":"https://api.github.com/users/zesstra/orgs","repos_url":"https://api.github.com/users/zesstra/repos","events_url":"https://api.github.com/users/zesstra/events{/privacy}","received_events_url":"https://api.github.com/users/zesstra/received_events","type":"User","site_admin":false},"body":"copy&paste fehler: couldn't find efun entry","created_at":"2016-05-27T12:45:11Z","updated_at":"2016-05-27T12:45:11Z","html_url":"https://github.com/ldmud/ldmud/pull/19#discussion_r64898747","pull_request_url":"https://api.github.com/repos/ldmud/ldmud/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/comments/64898747"},"html":{"href":"https://github.com/ldmud/ldmud/pull/19#discussion_r64898747"},"pull_request":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/ldmud/ldmud/pulls/19","id":57008837,"html_url":"https://github.com/ldmud/ldmud/pull/19","diff_url":"https://github.com/ldmud/ldmud/pull/19.diff","patch_url":"https://github.com/ldmud/ldmud/pull/19.patch","issue_url":"https://api.github.com/repos/ldmud/ldmud/issues/19","number":19,"state":"open","locked":false,"title":"Python interface","user":{"login":"amotzkau","id":483641,"avatar_url":"https://avatars.githubusercontent.com/u/483641?v=3","gravatar_id":"","url":"https://api.github.com/users/amotzkau","html_url":"https://github.com/amotzkau","followers_url":"https://api.github.com/users/amotzkau/followers","following_url":"https://api.github.com/users/amotzkau/following{/other_user}","gists_url":"https://api.github.com/users/amotzkau/gists{/gist_id}","starred_url":"https://api.github.com/users/amotzkau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amotzkau/subscriptions","organizations_url":"https://api.github.com/users/amotzkau/orgs","repos_url":"https://api.github.com/users/amotzkau/repos","events_url":"https://api.github.com/users/amotzkau/events{/privacy}","received_events_url":"https://api.github.com/users/amotzkau/received_events","type":"User","site_admin":false},"body":"This is an additional package for LDMud to write extensions in Python.\r\n\r\nThe package is not complete (there are a lot of methods and members you could write for each of the classes), but I think it's advanced enough to be already useful. Therefore I suggest to merge it with the main line and continue the development there.","created_at":"2016-01-24T17:42:59Z","updated_at":"2016-05-27T12:45:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ldmud/ldmud/pulls/19/commits","review_comments_url":"https://api.github.com/repos/ldmud/ldmud/pulls/19/comments","review_comment_url":"https://api.github.com/repos/ldmud/ldmud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ldmud/ldmud/issues/19/comments","statuses_url":"https://api.github.com/repos/ldmud/ldmud/statuses/4c8c494d838a3f270393f49e37573d1696c10559","head":{"label":"amotzkau:python","ref":"python","sha":"4c8c494d838a3f270393f49e37573d1696c10559","user":{"login":"amotzkau","id":483641,"avatar_url":"https://avatars.githubusercontent.com/u/483641?v=3","gravatar_id":"","url":"https://api.github.com/users/amotzkau","html_url":"https://github.com/amotzkau","followers_url":"https://api.github.com/users/amotzkau/followers","following_url":"https://api.github.com/users/amotzkau/following{/other_user}","gists_url":"https://api.github.com/users/amotzkau/gists{/gist_id}","starred_url":"https://api.github.com/users/amotzkau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amotzkau/subscriptions","organizations_url":"https://api.github.com/users/amotzkau/orgs","repos_url":"https://api.github.com/users/amotzkau/repos","events_url":"https://api.github.com/users/amotzkau/events{/privacy}","received_events_url":"https://api.github.com/users/amotzkau/received_events","type":"User","site_admin":false},"repo":{"id":6987596,"name":"ldmud","full_name":"amotzkau/ldmud","owner":{"login":"amotzkau","id":483641,"avatar_url":"https://avatars.githubusercontent.com/u/483641?v=3","gravatar_id":"","url":"https://api.github.com/users/amotzkau","html_url":"https://github.com/amotzkau","followers_url":"https://api.github.com/users/amotzkau/followers","following_url":"https://api.github.com/users/amotzkau/following{/other_user}","gists_url":"https://api.github.com/users/amotzkau/gists{/gist_id}","starred_url":"https://api.github.com/users/amotzkau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amotzkau/subscriptions","organizations_url":"https://api.github.com/users/amotzkau/orgs","repos_url":"https://api.github.com/users/amotzkau/repos","events_url":"https://api.github.com/users/amotzkau/events{/privacy}","received_events_url":"https://api.github.com/users/amotzkau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amotzkau/ldmud","description":"My branches for LDMud, beware I'll rewrite history occasionally.","fork":true,"url":"https://api.github.com/repos/amotzkau/ldmud","forks_url":"https://api.github.com/repos/amotzkau/ldmud/forks","keys_url":"https://api.github.com/repos/amotzkau/ldmud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amotzkau/ldmud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amotzkau/ldmud/teams","hooks_url":"https://api.github.com/repos/amotzkau/ldmud/hooks","issue_events_url":"https://api.github.com/repos/amotzkau/ldmud/issues/events{/number}","events_url":"https://api.github.com/repos/amotzkau/ldmud/events","assignees_url":"https://api.github.com/repos/amotzkau/ldmud/assignees{/user}","branches_url":"https://api.github.com/repos/amotzkau/ldmud/branches{/branch}","tags_url":"https://api.github.com/repos/amotzkau/ldmud/tags","blobs_url":"https://api.github.com/repos/amotzkau/ldmud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amotzkau/ldmud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amotzkau/ldmud/git/refs{/sha}","trees_url":"https://api.github.com/repos/amotzkau/ldmud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amotzkau/ldmud/statuses/{sha}","languages_url":"https://api.github.com/repos/amotzkau/ldmud/languages","stargazers_url":"https://api.github.com/repos/amotzkau/ldmud/stargazers","contributors_url":"https://api.github.com/repos/amotzkau/ldmud/contributors","subscribers_url":"https://api.github.com/repos/amotzkau/ldmud/subscribers","subscription_url":"https://api.github.com/repos/amotzkau/ldmud/subscription","commits_url":"https://api.github.com/repos/amotzkau/ldmud/commits{/sha}","git_commits_url":"https://api.github.com/repos/amotzkau/ldmud/git/commits{/sha}","comments_url":"https://api.github.com/repos/amotzkau/ldmud/comments{/number}","issue_comment_url":"https://api.github.com/repos/amotzkau/ldmud/issues/comments{/number}","contents_url":"https://api.github.com/repos/amotzkau/ldmud/contents/{+path}","compare_url":"https://api.github.com/repos/amotzkau/ldmud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amotzkau/ldmud/merges","archive_url":"https://api.github.com/repos/amotzkau/ldmud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amotzkau/ldmud/downloads","issues_url":"https://api.github.com/repos/amotzkau/ldmud/issues{/number}","pulls_url":"https://api.github.com/repos/amotzkau/ldmud/pulls{/number}","milestones_url":"https://api.github.com/repos/amotzkau/ldmud/milestones{/number}","notifications_url":"https://api.github.com/repos/amotzkau/ldmud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amotzkau/ldmud/labels{/name}","releases_url":"https://api.github.com/repos/amotzkau/ldmud/releases{/id}","deployments_url":"https://api.github.com/repos/amotzkau/ldmud/deployments","created_at":"2012-12-03T18:54:33Z","updated_at":"2015-04-27T21:32:52Z","pushed_at":"2016-03-21T00:37:58Z","git_url":"git://github.com/amotzkau/ldmud.git","ssh_url":"git@github.com:amotzkau/ldmud.git","clone_url":"https://github.com/amotzkau/ldmud.git","svn_url":"https://github.com/amotzkau/ldmud","homepage":"http://www.ldmud.eu/","size":17342,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"ldmud:master","ref":"master","sha":"5fad36521aee18bef151cfb28694f2efde547953","user":{"login":"ldmud","id":482901,"avatar_url":"https://avatars.githubusercontent.com/u/482901?v=3","gravatar_id":"","url":"https://api.github.com/users/ldmud","html_url":"https://github.com/ldmud","followers_url":"https://api.github.com/users/ldmud/followers","following_url":"https://api.github.com/users/ldmud/following{/other_user}","gists_url":"https://api.github.com/users/ldmud/gists{/gist_id}","starred_url":"https://api.github.com/users/ldmud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldmud/subscriptions","organizations_url":"https://api.github.com/users/ldmud/orgs","repos_url":"https://api.github.com/users/ldmud/repos","events_url":"https://api.github.com/users/ldmud/events{/privacy}","received_events_url":"https://api.github.com/users/ldmud/received_events","type":"Organization","site_admin":false},"repo":{"id":1085012,"name":"ldmud","full_name":"ldmud/ldmud","owner":{"login":"ldmud","id":482901,"avatar_url":"https://avatars.githubusercontent.com/u/482901?v=3","gravatar_id":"","url":"https://api.github.com/users/ldmud","html_url":"https://github.com/ldmud","followers_url":"https://api.github.com/users/ldmud/followers","following_url":"https://api.github.com/users/ldmud/following{/other_user}","gists_url":"https://api.github.com/users/ldmud/gists{/gist_id}","starred_url":"https://api.github.com/users/ldmud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldmud/subscriptions","organizations_url":"https://api.github.com/users/ldmud/orgs","repos_url":"https://api.github.com/users/ldmud/repos","events_url":"https://api.github.com/users/ldmud/events{/privacy}","received_events_url":"https://api.github.com/users/ldmud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ldmud/ldmud","description":"Source Repository for LDMud","fork":false,"url":"https://api.github.com/repos/ldmud/ldmud","forks_url":"https://api.github.com/repos/ldmud/ldmud/forks","keys_url":"https://api.github.com/repos/ldmud/ldmud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldmud/ldmud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldmud/ldmud/teams","hooks_url":"https://api.github.com/repos/ldmud/ldmud/hooks","issue_events_url":"https://api.github.com/repos/ldmud/ldmud/issues/events{/number}","events_url":"https://api.github.com/repos/ldmud/ldmud/events","assignees_url":"https://api.github.com/repos/ldmud/ldmud/assignees{/user}","branches_url":"https://api.github.com/repos/ldmud/ldmud/branches{/branch}","tags_url":"https://api.github.com/repos/ldmud/ldmud/tags","blobs_url":"https://api.github.com/repos/ldmud/ldmud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldmud/ldmud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldmud/ldmud/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldmud/ldmud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldmud/ldmud/statuses/{sha}","languages_url":"https://api.github.com/repos/ldmud/ldmud/languages","stargazers_url":"https://api.github.com/repos/ldmud/ldmud/stargazers","contributors_url":"https://api.github.com/repos/ldmud/ldmud/contributors","subscribers_url":"https://api.github.com/repos/ldmud/ldmud/subscribers","subscription_url":"https://api.github.com/repos/ldmud/ldmud/subscription","commits_url":"https://api.github.com/repos/ldmud/ldmud/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldmud/ldmud/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldmud/ldmud/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldmud/ldmud/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldmud/ldmud/contents/{+path}","compare_url":"https://api.github.com/repos/ldmud/ldmud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldmud/ldmud/merges","archive_url":"https://api.github.com/repos/ldmud/ldmud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldmud/ldmud/downloads","issues_url":"https://api.github.com/repos/ldmud/ldmud/issues{/number}","pulls_url":"https://api.github.com/repos/ldmud/ldmud/pulls{/number}","milestones_url":"https://api.github.com/repos/ldmud/ldmud/milestones{/number}","notifications_url":"https://api.github.com/repos/ldmud/ldmud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldmud/ldmud/labels{/name}","releases_url":"https://api.github.com/repos/ldmud/ldmud/releases{/id}","deployments_url":"https://api.github.com/repos/ldmud/ldmud/deployments","created_at":"2010-11-16T12:13:17Z","updated_at":"2016-05-11T06:36:28Z","pushed_at":"2016-02-21T13:37:12Z","git_url":"git://github.com/ldmud/ldmud.git","ssh_url":"git@github.com:ldmud/ldmud.git","clone_url":"https://github.com/ldmud/ldmud.git","svn_url":"https://github.com/ldmud/ldmud","homepage":"http://www.ldmud.eu/","size":18715,"stargazers_count":45,"watchers_count":45,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":3,"forks":16,"open_issues":3,"watchers":45,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/19"},"html":{"href":"https://github.com/ldmud/ldmud/pull/19"},"issue":{"href":"https://api.github.com/repos/ldmud/ldmud/issues/19"},"comments":{"href":"https://api.github.com/repos/ldmud/ldmud/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ldmud/ldmud/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/ldmud/ldmud/statuses/4c8c494d838a3f270393f49e37573d1696c10559"}}}}
{"actor":{"display_login":"zesstra"}}