{"action":"created","comment":{"url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/comments/26546161","id":26546161,"diff_hunk":"@@ -66,7 +68,16 @@ class Py_FrameObject {\n         this.outputDevice = outputDevice;\n         this.shouldWriteSpace = false;\n         this.blockStack = [];\n-        this.env = env;\n+        this.env = [];\n+        \n+        for (var i = 0; i < code.cellvars.length; i++) {\n+            this.env.push(new Py_Cell(null));\n+        }\n+\n+        for (var i = 0; i < code.freevars.length; i++) {","path":"src/frameobject.ts","position":38,"original_position":38,"commit_id":"faaf07981bf44289e7895b5f79be2ba007ddbb8d","original_commit_id":"faaf07981bf44289e7895b5f79be2ba007ddbb8d","user":{"login":"geremih","id":1194396,"avatar_url":"https://avatars.githubusercontent.com/u/1194396?v=3","gravatar_id":"","url":"https://api.github.com/users/geremih","html_url":"https://github.com/geremih","followers_url":"https://api.github.com/users/geremih/followers","following_url":"https://api.github.com/users/geremih/following{/other_user}","gists_url":"https://api.github.com/users/geremih/gists{/gist_id}","starred_url":"https://api.github.com/users/geremih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geremih/subscriptions","organizations_url":"https://api.github.com/users/geremih/orgs","repos_url":"https://api.github.com/users/geremih/repos","events_url":"https://api.github.com/users/geremih/events{/privacy}","received_events_url":"https://api.github.com/users/geremih/received_events","type":"User","site_admin":false},"body":"I'll fix it and keep it in mind for the future.","created_at":"2015-03-17T02:58:17Z","updated_at":"2015-03-17T02:58:17Z","html_url":"https://github.com/plasma-umass/Ninia/pull/27#discussion_r26546161","pull_request_url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/comments/26546161"},"html":{"href":"https://github.com/plasma-umass/Ninia/pull/27#discussion_r26546161"},"pull_request":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27","id":31302662,"html_url":"https://github.com/plasma-umass/Ninia/pull/27","diff_url":"https://github.com/plasma-umass/Ninia/pull/27.diff","patch_url":"https://github.com/plasma-umass/Ninia/pull/27.patch","issue_url":"https://api.github.com/repos/plasma-umass/Ninia/issues/27","number":27,"state":"open","locked":false,"title":"Use Py_Cell for closures","user":{"login":"geremih","id":1194396,"avatar_url":"https://avatars.githubusercontent.com/u/1194396?v=3","gravatar_id":"","url":"https://api.github.com/users/geremih","html_url":"https://github.com/geremih","followers_url":"https://api.github.com/users/geremih/followers","following_url":"https://api.github.com/users/geremih/following{/other_user}","gists_url":"https://api.github.com/users/geremih/gists{/gist_id}","starred_url":"https://api.github.com/users/geremih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geremih/subscriptions","organizations_url":"https://api.github.com/users/geremih/orgs","repos_url":"https://api.github.com/users/geremih/repos","events_url":"https://api.github.com/users/geremih/events{/privacy}","received_events_url":"https://api.github.com/users/geremih/received_events","type":"User","site_admin":false},"body":"Use `Py_Cell` for storing indirect references to objects. A level of indirection is required so that changes that occur to the variable are reflected in the closure.","created_at":"2015-03-17T02:31:18Z","updated_at":"2015-03-17T02:58:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fb1a3d303145c96106e5485b7f5dc24dac594f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27/commits","review_comments_url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27/comments","review_comment_url":"https://api.github.com/repos/plasma-umass/Ninia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/plasma-umass/Ninia/issues/27/comments","statuses_url":"https://api.github.com/repos/plasma-umass/Ninia/statuses/faaf07981bf44289e7895b5f79be2ba007ddbb8d","head":{"label":"geremih:closure","ref":"closure","sha":"faaf07981bf44289e7895b5f79be2ba007ddbb8d","user":{"login":"geremih","id":1194396,"avatar_url":"https://avatars.githubusercontent.com/u/1194396?v=3","gravatar_id":"","url":"https://api.github.com/users/geremih","html_url":"https://github.com/geremih","followers_url":"https://api.github.com/users/geremih/followers","following_url":"https://api.github.com/users/geremih/following{/other_user}","gists_url":"https://api.github.com/users/geremih/gists{/gist_id}","starred_url":"https://api.github.com/users/geremih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geremih/subscriptions","organizations_url":"https://api.github.com/users/geremih/orgs","repos_url":"https://api.github.com/users/geremih/repos","events_url":"https://api.github.com/users/geremih/events{/privacy}","received_events_url":"https://api.github.com/users/geremih/received_events","type":"User","site_admin":false},"repo":{"id":31844562,"name":"Ninia","full_name":"geremih/Ninia","owner":{"login":"geremih","id":1194396,"avatar_url":"https://avatars.githubusercontent.com/u/1194396?v=3","gravatar_id":"","url":"https://api.github.com/users/geremih","html_url":"https://github.com/geremih","followers_url":"https://api.github.com/users/geremih/followers","following_url":"https://api.github.com/users/geremih/following{/other_user}","gists_url":"https://api.github.com/users/geremih/gists{/gist_id}","starred_url":"https://api.github.com/users/geremih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geremih/subscriptions","organizations_url":"https://api.github.com/users/geremih/orgs","repos_url":"https://api.github.com/users/geremih/repos","events_url":"https://api.github.com/users/geremih/events{/privacy}","received_events_url":"https://api.github.com/users/geremih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/geremih/Ninia","description":"Python interpreter in JavaScript","fork":true,"url":"https://api.github.com/repos/geremih/Ninia","forks_url":"https://api.github.com/repos/geremih/Ninia/forks","keys_url":"https://api.github.com/repos/geremih/Ninia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geremih/Ninia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geremih/Ninia/teams","hooks_url":"https://api.github.com/repos/geremih/Ninia/hooks","issue_events_url":"https://api.github.com/repos/geremih/Ninia/issues/events{/number}","events_url":"https://api.github.com/repos/geremih/Ninia/events","assignees_url":"https://api.github.com/repos/geremih/Ninia/assignees{/user}","branches_url":"https://api.github.com/repos/geremih/Ninia/branches{/branch}","tags_url":"https://api.github.com/repos/geremih/Ninia/tags","blobs_url":"https://api.github.com/repos/geremih/Ninia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geremih/Ninia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geremih/Ninia/git/refs{/sha}","trees_url":"https://api.github.com/repos/geremih/Ninia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geremih/Ninia/statuses/{sha}","languages_url":"https://api.github.com/repos/geremih/Ninia/languages","stargazers_url":"https://api.github.com/repos/geremih/Ninia/stargazers","contributors_url":"https://api.github.com/repos/geremih/Ninia/contributors","subscribers_url":"https://api.github.com/repos/geremih/Ninia/subscribers","subscription_url":"https://api.github.com/repos/geremih/Ninia/subscription","commits_url":"https://api.github.com/repos/geremih/Ninia/commits{/sha}","git_commits_url":"https://api.github.com/repos/geremih/Ninia/git/commits{/sha}","comments_url":"https://api.github.com/repos/geremih/Ninia/comments{/number}","issue_comment_url":"https://api.github.com/repos/geremih/Ninia/issues/comments{/number}","contents_url":"https://api.github.com/repos/geremih/Ninia/contents/{+path}","compare_url":"https://api.github.com/repos/geremih/Ninia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geremih/Ninia/merges","archive_url":"https://api.github.com/repos/geremih/Ninia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geremih/Ninia/downloads","issues_url":"https://api.github.com/repos/geremih/Ninia/issues{/number}","pulls_url":"https://api.github.com/repos/geremih/Ninia/pulls{/number}","milestones_url":"https://api.github.com/repos/geremih/Ninia/milestones{/number}","notifications_url":"https://api.github.com/repos/geremih/Ninia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geremih/Ninia/labels{/name}","releases_url":"https://api.github.com/repos/geremih/Ninia/releases{/id}","created_at":"2015-03-08T09:31:25Z","updated_at":"2015-03-16T02:40:20Z","pushed_at":"2015-03-17T02:30:11Z","git_url":"git://github.com/geremih/Ninia.git","ssh_url":"git@github.com:geremih/Ninia.git","clone_url":"https://github.com/geremih/Ninia.git","svn_url":"https://github.com/geremih/Ninia","homepage":"","size":1174,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"plasma-umass:master","ref":"master","sha":"44e91322e29fdd38b413c5ed71ffd5d6e646f3c8","user":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"repo":{"id":31030189,"name":"Ninia","full_name":"plasma-umass/Ninia","owner":{"login":"plasma-umass","id":1880823,"avatar_url":"https://avatars.githubusercontent.com/u/1880823?v=3","gravatar_id":"","url":"https://api.github.com/users/plasma-umass","html_url":"https://github.com/plasma-umass","followers_url":"https://api.github.com/users/plasma-umass/followers","following_url":"https://api.github.com/users/plasma-umass/following{/other_user}","gists_url":"https://api.github.com/users/plasma-umass/gists{/gist_id}","starred_url":"https://api.github.com/users/plasma-umass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plasma-umass/subscriptions","organizations_url":"https://api.github.com/users/plasma-umass/orgs","repos_url":"https://api.github.com/users/plasma-umass/repos","events_url":"https://api.github.com/users/plasma-umass/events{/privacy}","received_events_url":"https://api.github.com/users/plasma-umass/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/plasma-umass/Ninia","description":"Python interpreter in JavaScript","fork":true,"url":"https://api.github.com/repos/plasma-umass/Ninia","forks_url":"https://api.github.com/repos/plasma-umass/Ninia/forks","keys_url":"https://api.github.com/repos/plasma-umass/Ninia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plasma-umass/Ninia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plasma-umass/Ninia/teams","hooks_url":"https://api.github.com/repos/plasma-umass/Ninia/hooks","issue_events_url":"https://api.github.com/repos/plasma-umass/Ninia/issues/events{/number}","events_url":"https://api.github.com/repos/plasma-umass/Ninia/events","assignees_url":"https://api.github.com/repos/plasma-umass/Ninia/assignees{/user}","branches_url":"https://api.github.com/repos/plasma-umass/Ninia/branches{/branch}","tags_url":"https://api.github.com/repos/plasma-umass/Ninia/tags","blobs_url":"https://api.github.com/repos/plasma-umass/Ninia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plasma-umass/Ninia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plasma-umass/Ninia/git/refs{/sha}","trees_url":"https://api.github.com/repos/plasma-umass/Ninia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plasma-umass/Ninia/statuses/{sha}","languages_url":"https://api.github.com/repos/plasma-umass/Ninia/languages","stargazers_url":"https://api.github.com/repos/plasma-umass/Ninia/stargazers","contributors_url":"https://api.github.com/repos/plasma-umass/Ninia/contributors","subscribers_url":"https://api.github.com/repos/plasma-umass/Ninia/subscribers","subscription_url":"https://api.github.com/repos/plasma-umass/Ninia/subscription","commits_url":"https://api.github.com/repos/plasma-umass/Ninia/commits{/sha}","git_commits_url":"https://api.github.com/repos/plasma-umass/Ninia/git/commits{/sha}","comments_url":"https://api.github.com/repos/plasma-umass/Ninia/comments{/number}","issue_comment_url":"https://api.github.com/repos/plasma-umass/Ninia/issues/comments{/number}","contents_url":"https://api.github.com/repos/plasma-umass/Ninia/contents/{+path}","compare_url":"https://api.github.com/repos/plasma-umass/Ninia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plasma-umass/Ninia/merges","archive_url":"https://api.github.com/repos/plasma-umass/Ninia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plasma-umass/Ninia/downloads","issues_url":"https://api.github.com/repos/plasma-umass/Ninia/issues{/number}","pulls_url":"https://api.github.com/repos/plasma-umass/Ninia/pulls{/number}","milestones_url":"https://api.github.com/repos/plasma-umass/Ninia/milestones{/number}","notifications_url":"https://api.github.com/repos/plasma-umass/Ninia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plasma-umass/Ninia/labels{/name}","releases_url":"https://api.github.com/repos/plasma-umass/Ninia/releases{/id}","created_at":"2015-02-19T18:35:36Z","updated_at":"2015-03-16T23:47:11Z","pushed_at":"2015-03-16T23:47:10Z","git_url":"git://github.com/plasma-umass/Ninia.git","ssh_url":"git@github.com:plasma-umass/Ninia.git","clone_url":"https://github.com/plasma-umass/Ninia.git","svn_url":"https://github.com/plasma-umass/Ninia","homepage":"","size":1571,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27"},"html":{"href":"https://github.com/plasma-umass/Ninia/pull/27"},"issue":{"href":"https://api.github.com/repos/plasma-umass/Ninia/issues/27"},"comments":{"href":"https://api.github.com/repos/plasma-umass/Ninia/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/plasma-umass/Ninia/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/plasma-umass/Ninia/statuses/faaf07981bf44289e7895b5f79be2ba007ddbb8d"}}}}