{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/mihir-w/sympy/pulls/4","id":28470462,"html_url":"https://github.com/mihir-w/sympy/pull/4","diff_url":"https://github.com/mihir-w/sympy/pull/4.diff","patch_url":"https://github.com/mihir-w/sympy/pull/4.patch","issue_url":"https://api.github.com/repos/mihir-w/sympy/issues/4","number":4,"state":"open","locked":false,"title":"cse: simplify docstring and restoration of matrices","user":{"login":"smichr","id":90703,"avatar_url":"https://avatars.githubusercontent.com/u/90703?v=3","gravatar_id":"","url":"https://api.github.com/users/smichr","html_url":"https://github.com/smichr","followers_url":"https://api.github.com/users/smichr/followers","following_url":"https://api.github.com/users/smichr/following{/other_user}","gists_url":"https://api.github.com/users/smichr/gists{/gist_id}","starred_url":"https://api.github.com/users/smichr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichr/subscriptions","organizations_url":"https://api.github.com/users/smichr/orgs","repos_url":"https://api.github.com/users/smichr/repos","events_url":"https://api.github.com/users/smichr/events{/privacy}","received_events_url":"https://api.github.com/users/smichr/received_events","type":"User","site_admin":false},"body":"The tests are the place to test that everything works. The docstring just showcases things that uses are likely to be interested in. So I moved the demonstration of matrix handling to the recursive section of the docstring to show that, \"yes, even matrices are handled and retain their identity\".\r\n\r\nThe use of enumerate allows the elimination of the `temp` variable.","created_at":"2015-02-02T14:10:19Z","updated_at":"2015-02-02T14:10:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2bb2a31797b906093c01f839f604f83e99d070a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mihir-w/sympy/pulls/4/commits","review_comments_url":"https://api.github.com/repos/mihir-w/sympy/pulls/4/comments","review_comment_url":"https://api.github.com/repos/mihir-w/sympy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mihir-w/sympy/issues/4/comments","statuses_url":"https://api.github.com/repos/mihir-w/sympy/statuses/6693e51a129d8b20477f374896328eaeaaee4c39","head":{"label":"smichr:pr","ref":"pr","sha":"6693e51a129d8b20477f374896328eaeaaee4c39","user":{"login":"smichr","id":90703,"avatar_url":"https://avatars.githubusercontent.com/u/90703?v=3","gravatar_id":"","url":"https://api.github.com/users/smichr","html_url":"https://github.com/smichr","followers_url":"https://api.github.com/users/smichr/followers","following_url":"https://api.github.com/users/smichr/following{/other_user}","gists_url":"https://api.github.com/users/smichr/gists{/gist_id}","starred_url":"https://api.github.com/users/smichr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichr/subscriptions","organizations_url":"https://api.github.com/users/smichr/orgs","repos_url":"https://api.github.com/users/smichr/repos","events_url":"https://api.github.com/users/smichr/events{/privacy}","received_events_url":"https://api.github.com/users/smichr/received_events","type":"User","site_admin":false},"repo":{"id":1050285,"name":"sympy","full_name":"smichr/sympy","owner":{"login":"smichr","id":90703,"avatar_url":"https://avatars.githubusercontent.com/u/90703?v=3","gravatar_id":"","url":"https://api.github.com/users/smichr","html_url":"https://github.com/smichr","followers_url":"https://api.github.com/users/smichr/followers","following_url":"https://api.github.com/users/smichr/following{/other_user}","gists_url":"https://api.github.com/users/smichr/gists{/gist_id}","starred_url":"https://api.github.com/users/smichr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smichr/subscriptions","organizations_url":"https://api.github.com/users/smichr/orgs","repos_url":"https://api.github.com/users/smichr/repos","events_url":"https://api.github.com/users/smichr/events{/privacy}","received_events_url":"https://api.github.com/users/smichr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smichr/sympy","description":"SymPy main development repo","fork":true,"url":"https://api.github.com/repos/smichr/sympy","forks_url":"https://api.github.com/repos/smichr/sympy/forks","keys_url":"https://api.github.com/repos/smichr/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smichr/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smichr/sympy/teams","hooks_url":"https://api.github.com/repos/smichr/sympy/hooks","issue_events_url":"https://api.github.com/repos/smichr/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/smichr/sympy/events","assignees_url":"https://api.github.com/repos/smichr/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/smichr/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/smichr/sympy/tags","blobs_url":"https://api.github.com/repos/smichr/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smichr/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smichr/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/smichr/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smichr/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/smichr/sympy/languages","stargazers_url":"https://api.github.com/repos/smichr/sympy/stargazers","contributors_url":"https://api.github.com/repos/smichr/sympy/contributors","subscribers_url":"https://api.github.com/repos/smichr/sympy/subscribers","subscription_url":"https://api.github.com/repos/smichr/sympy/subscription","commits_url":"https://api.github.com/repos/smichr/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/smichr/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/smichr/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/smichr/sympy/issues/comments/{number}","contents_url":"https://api.github.com/repos/smichr/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/smichr/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smichr/sympy/merges","archive_url":"https://api.github.com/repos/smichr/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smichr/sympy/downloads","issues_url":"https://api.github.com/repos/smichr/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/smichr/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/smichr/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/smichr/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smichr/sympy/labels{/name}","releases_url":"https://api.github.com/repos/smichr/sympy/releases{/id}","created_at":"2010-11-04T05:52:58Z","updated_at":"2015-01-14T06:55:33Z","pushed_at":"2015-02-02T14:05:49Z","git_url":"git://github.com/smichr/sympy.git","ssh_url":"git@github.com:smichr/sympy.git","clone_url":"https://github.com/smichr/sympy.git","svn_url":"https://github.com/smichr/sympy","homepage":"http://sympy.org/","size":75232,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":8,"default_branch":"master"}},"base":{"label":"mihir-w:8891","ref":"8891","sha":"9099375528e87d61ac1f6d625cbd7745c955e881","user":{"login":"mihir-w","id":6362463,"avatar_url":"https://avatars.githubusercontent.com/u/6362463?v=3","gravatar_id":"","url":"https://api.github.com/users/mihir-w","html_url":"https://github.com/mihir-w","followers_url":"https://api.github.com/users/mihir-w/followers","following_url":"https://api.github.com/users/mihir-w/following{/other_user}","gists_url":"https://api.github.com/users/mihir-w/gists{/gist_id}","starred_url":"https://api.github.com/users/mihir-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihir-w/subscriptions","organizations_url":"https://api.github.com/users/mihir-w/orgs","repos_url":"https://api.github.com/users/mihir-w/repos","events_url":"https://api.github.com/users/mihir-w/events{/privacy}","received_events_url":"https://api.github.com/users/mihir-w/received_events","type":"User","site_admin":false},"repo":{"id":29404407,"name":"sympy","full_name":"mihir-w/sympy","owner":{"login":"mihir-w","id":6362463,"avatar_url":"https://avatars.githubusercontent.com/u/6362463?v=3","gravatar_id":"","url":"https://api.github.com/users/mihir-w","html_url":"https://github.com/mihir-w","followers_url":"https://api.github.com/users/mihir-w/followers","following_url":"https://api.github.com/users/mihir-w/following{/other_user}","gists_url":"https://api.github.com/users/mihir-w/gists{/gist_id}","starred_url":"https://api.github.com/users/mihir-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihir-w/subscriptions","organizations_url":"https://api.github.com/users/mihir-w/orgs","repos_url":"https://api.github.com/users/mihir-w/repos","events_url":"https://api.github.com/users/mihir-w/events{/privacy}","received_events_url":"https://api.github.com/users/mihir-w/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mihir-w/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/mihir-w/sympy","forks_url":"https://api.github.com/repos/mihir-w/sympy/forks","keys_url":"https://api.github.com/repos/mihir-w/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mihir-w/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mihir-w/sympy/teams","hooks_url":"https://api.github.com/repos/mihir-w/sympy/hooks","issue_events_url":"https://api.github.com/repos/mihir-w/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/mihir-w/sympy/events","assignees_url":"https://api.github.com/repos/mihir-w/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/mihir-w/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/mihir-w/sympy/tags","blobs_url":"https://api.github.com/repos/mihir-w/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mihir-w/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mihir-w/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mihir-w/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mihir-w/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/mihir-w/sympy/languages","stargazers_url":"https://api.github.com/repos/mihir-w/sympy/stargazers","contributors_url":"https://api.github.com/repos/mihir-w/sympy/contributors","subscribers_url":"https://api.github.com/repos/mihir-w/sympy/subscribers","subscription_url":"https://api.github.com/repos/mihir-w/sympy/subscription","commits_url":"https://api.github.com/repos/mihir-w/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mihir-w/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mihir-w/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mihir-w/sympy/issues/comments/{number}","contents_url":"https://api.github.com/repos/mihir-w/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/mihir-w/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mihir-w/sympy/merges","archive_url":"https://api.github.com/repos/mihir-w/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mihir-w/sympy/downloads","issues_url":"https://api.github.com/repos/mihir-w/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/mihir-w/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/mihir-w/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/mihir-w/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mihir-w/sympy/labels{/name}","releases_url":"https://api.github.com/repos/mihir-w/sympy/releases{/id}","created_at":"2015-01-17T20:22:40Z","updated_at":"2015-02-01T07:13:29Z","pushed_at":"2015-02-02T06:32:05Z","git_url":"git://github.com/mihir-w/sympy.git","ssh_url":"git@github.com:mihir-w/sympy.git","clone_url":"https://github.com/mihir-w/sympy.git","svn_url":"https://github.com/mihir-w/sympy","homepage":"http://sympy.org/","size":66654,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mihir-w/sympy/pulls/4"},"html":{"href":"https://github.com/mihir-w/sympy/pull/4"},"issue":{"href":"https://api.github.com/repos/mihir-w/sympy/issues/4"},"comments":{"href":"https://api.github.com/repos/mihir-w/sympy/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/mihir-w/sympy/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/mihir-w/sympy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mihir-w/sympy/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/mihir-w/sympy/statuses/6693e51a129d8b20477f374896328eaeaaee4c39"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":44,"changed_files":1}}