{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/230238268","pull_request_review_id":170931524,"id":230238268,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDIzODI2OA==","diff_hunk":"@@ -1497,7 +1497,7 @@ def _print_MatMul(self, expr):\n         from sympy import Add, MatAdd, HadamardProduct, MatMul, Mul\n \n         def parens(x):\n-            if isinstance(x, (Add, MatAdd, HadamardProduct)):\n+            if isinstance(x, (Add, MatAdd, HadamardProduct)) or isinstance(x, MatMul) and x.args[0] < 0:","path":"sympy/printing/latex.py","position":5,"original_position":5,"commit_id":"34f32c881cee60587b671a0dbc62d0fdd997d732","original_commit_id":"34f32c881cee60587b671a0dbc62d0fdd997d732","user":{"login":"JMSS-Unknown","id":31131631,"node_id":"MDQ6VXNlcjMxMTMxNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/31131631?v=4","gravatar_id":"","url":"https://api.github.com/users/JMSS-Unknown","html_url":"https://github.com/JMSS-Unknown","followers_url":"https://api.github.com/users/JMSS-Unknown/followers","following_url":"https://api.github.com/users/JMSS-Unknown/following{/other_user}","gists_url":"https://api.github.com/users/JMSS-Unknown/gists{/gist_id}","starred_url":"https://api.github.com/users/JMSS-Unknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMSS-Unknown/subscriptions","organizations_url":"https://api.github.com/users/JMSS-Unknown/orgs","repos_url":"https://api.github.com/users/JMSS-Unknown/repos","events_url":"https://api.github.com/users/JMSS-Unknown/events{/privacy}","received_events_url":"https://api.github.com/users/JMSS-Unknown/received_events","type":"User","site_admin":false},"body":"Then it doesn't add brackets altogether, not even for `latex((x * y).subs(y, -y))`","created_at":"2018-11-02T00:06:38Z","updated_at":"2018-11-02T00:06:38Z","html_url":"https://github.com/sympy/sympy/pull/15446#discussion_r230238268","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/15446","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/230238268"},"html":{"href":"https://github.com/sympy/sympy/pull/15446#discussion_r230238268"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15446"}},"in_reply_to_id":230022534},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/15446","id":227580044,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3NTgwMDQ0","html_url":"https://github.com/sympy/sympy/pull/15446","diff_url":"https://github.com/sympy/sympy/pull/15446.diff","patch_url":"https://github.com/sympy/sympy/pull/15446.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/15446","number":15446,"state":"open","locked":false,"title":"Fix omission of necessary parentheses with MatMul","user":{"login":"JMSS-Unknown","id":31131631,"node_id":"MDQ6VXNlcjMxMTMxNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/31131631?v=4","gravatar_id":"","url":"https://api.github.com/users/JMSS-Unknown","html_url":"https://github.com/JMSS-Unknown","followers_url":"https://api.github.com/users/JMSS-Unknown/followers","following_url":"https://api.github.com/users/JMSS-Unknown/following{/other_user}","gists_url":"https://api.github.com/users/JMSS-Unknown/gists{/gist_id}","starred_url":"https://api.github.com/users/JMSS-Unknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMSS-Unknown/subscriptions","organizations_url":"https://api.github.com/users/JMSS-Unknown/orgs","repos_url":"https://api.github.com/users/JMSS-Unknown/repos","events_url":"https://api.github.com/users/JMSS-Unknown/events{/privacy}","received_events_url":"https://api.github.com/users/JMSS-Unknown/received_events","type":"User","site_admin":false},"body":"Fixes #15439\r\n\r\n<!-- BEGIN RELEASE NOTES -->\r\n* printing\r\n  * Fix omission of necessary parentheses with MatMul\r\n<!-- END RELEASE NOTES -->\r\n","created_at":"2018-11-01T10:50:26Z","updated_at":"2018-11-02T00:06:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a5f95c200e25ca6332b7722c3f49f19f39dc18e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/15446/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/15446/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/15446/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/34f32c881cee60587b671a0dbc62d0fdd997d732","head":{"label":"JMSS-Unknown:issue_15439","ref":"issue_15439","sha":"34f32c881cee60587b671a0dbc62d0fdd997d732","user":{"login":"JMSS-Unknown","id":31131631,"node_id":"MDQ6VXNlcjMxMTMxNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/31131631?v=4","gravatar_id":"","url":"https://api.github.com/users/JMSS-Unknown","html_url":"https://github.com/JMSS-Unknown","followers_url":"https://api.github.com/users/JMSS-Unknown/followers","following_url":"https://api.github.com/users/JMSS-Unknown/following{/other_user}","gists_url":"https://api.github.com/users/JMSS-Unknown/gists{/gist_id}","starred_url":"https://api.github.com/users/JMSS-Unknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMSS-Unknown/subscriptions","organizations_url":"https://api.github.com/users/JMSS-Unknown/orgs","repos_url":"https://api.github.com/users/JMSS-Unknown/repos","events_url":"https://api.github.com/users/JMSS-Unknown/events{/privacy}","received_events_url":"https://api.github.com/users/JMSS-Unknown/received_events","type":"User","site_admin":false},"repo":{"id":155682288,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU2ODIyODg=","name":"sympy","full_name":"JMSS-Unknown/sympy","private":false,"owner":{"login":"JMSS-Unknown","id":31131631,"node_id":"MDQ6VXNlcjMxMTMxNjMx","avatar_url":"https://avatars1.githubusercontent.com/u/31131631?v=4","gravatar_id":"","url":"https://api.github.com/users/JMSS-Unknown","html_url":"https://github.com/JMSS-Unknown","followers_url":"https://api.github.com/users/JMSS-Unknown/followers","following_url":"https://api.github.com/users/JMSS-Unknown/following{/other_user}","gists_url":"https://api.github.com/users/JMSS-Unknown/gists{/gist_id}","starred_url":"https://api.github.com/users/JMSS-Unknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMSS-Unknown/subscriptions","organizations_url":"https://api.github.com/users/JMSS-Unknown/orgs","repos_url":"https://api.github.com/users/JMSS-Unknown/repos","events_url":"https://api.github.com/users/JMSS-Unknown/events{/privacy}","received_events_url":"https://api.github.com/users/JMSS-Unknown/received_events","type":"User","site_admin":false},"html_url":"https://github.com/JMSS-Unknown/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/JMSS-Unknown/sympy","forks_url":"https://api.github.com/repos/JMSS-Unknown/sympy/forks","keys_url":"https://api.github.com/repos/JMSS-Unknown/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JMSS-Unknown/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JMSS-Unknown/sympy/teams","hooks_url":"https://api.github.com/repos/JMSS-Unknown/sympy/hooks","issue_events_url":"https://api.github.com/repos/JMSS-Unknown/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/JMSS-Unknown/sympy/events","assignees_url":"https://api.github.com/repos/JMSS-Unknown/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/JMSS-Unknown/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/JMSS-Unknown/sympy/tags","blobs_url":"https://api.github.com/repos/JMSS-Unknown/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JMSS-Unknown/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JMSS-Unknown/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/JMSS-Unknown/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JMSS-Unknown/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/JMSS-Unknown/sympy/languages","stargazers_url":"https://api.github.com/repos/JMSS-Unknown/sympy/stargazers","contributors_url":"https://api.github.com/repos/JMSS-Unknown/sympy/contributors","subscribers_url":"https://api.github.com/repos/JMSS-Unknown/sympy/subscribers","subscription_url":"https://api.github.com/repos/JMSS-Unknown/sympy/subscription","commits_url":"https://api.github.com/repos/JMSS-Unknown/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/JMSS-Unknown/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/JMSS-Unknown/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/JMSS-Unknown/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/JMSS-Unknown/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/JMSS-Unknown/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JMSS-Unknown/sympy/merges","archive_url":"https://api.github.com/repos/JMSS-Unknown/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JMSS-Unknown/sympy/downloads","issues_url":"https://api.github.com/repos/JMSS-Unknown/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/JMSS-Unknown/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/JMSS-Unknown/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/JMSS-Unknown/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JMSS-Unknown/sympy/labels{/name}","releases_url":"https://api.github.com/repos/JMSS-Unknown/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/JMSS-Unknown/sympy/deployments","created_at":"2018-11-01T08:06:46Z","updated_at":"2018-11-01T08:06:54Z","pushed_at":"2018-11-01T12:40:57Z","git_url":"git://github.com/JMSS-Unknown/sympy.git","ssh_url":"git@github.com:JMSS-Unknown/sympy.git","clone_url":"https://github.com/JMSS-Unknown/sympy.git","svn_url":"https://github.com/JMSS-Unknown/sympy","homepage":"https://sympy.org/","size":96427,"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,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sympy:master","ref":"master","sha":"cd98ba006b5c6d6a6d072eafa28ea6d0ebdaf0e7","user":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"repo":{"id":640534,"node_id":"MDEwOlJlcG9zaXRvcnk2NDA1MzQ=","name":"sympy","full_name":"sympy/sympy","private":false,"owner":{"login":"sympy","id":260832,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2MDgzMg==","avatar_url":"https://avatars1.githubusercontent.com/u/260832?v=4","gravatar_id":"","url":"https://api.github.com/users/sympy","html_url":"https://github.com/sympy","followers_url":"https://api.github.com/users/sympy/followers","following_url":"https://api.github.com/users/sympy/following{/other_user}","gists_url":"https://api.github.com/users/sympy/gists{/gist_id}","starred_url":"https://api.github.com/users/sympy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sympy/subscriptions","organizations_url":"https://api.github.com/users/sympy/orgs","repos_url":"https://api.github.com/users/sympy/repos","events_url":"https://api.github.com/users/sympy/events{/privacy}","received_events_url":"https://api.github.com/users/sympy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sympy/sympy","description":"A computer algebra system written in pure Python","fork":false,"url":"https://api.github.com/repos/sympy/sympy","forks_url":"https://api.github.com/repos/sympy/sympy/forks","keys_url":"https://api.github.com/repos/sympy/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sympy/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sympy/sympy/teams","hooks_url":"https://api.github.com/repos/sympy/sympy/hooks","issue_events_url":"https://api.github.com/repos/sympy/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/sympy/sympy/events","assignees_url":"https://api.github.com/repos/sympy/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/sympy/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/sympy/sympy/tags","blobs_url":"https://api.github.com/repos/sympy/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sympy/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sympy/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sympy/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/sympy/sympy/languages","stargazers_url":"https://api.github.com/repos/sympy/sympy/stargazers","contributors_url":"https://api.github.com/repos/sympy/sympy/contributors","subscribers_url":"https://api.github.com/repos/sympy/sympy/subscribers","subscription_url":"https://api.github.com/repos/sympy/sympy/subscription","commits_url":"https://api.github.com/repos/sympy/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sympy/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sympy/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sympy/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sympy/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/sympy/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sympy/sympy/merges","archive_url":"https://api.github.com/repos/sympy/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sympy/sympy/downloads","issues_url":"https://api.github.com/repos/sympy/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/sympy/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/sympy/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/sympy/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sympy/sympy/labels{/name}","releases_url":"https://api.github.com/repos/sympy/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/sympy/sympy/deployments","created_at":"2010-04-30T20:37:14Z","updated_at":"2018-11-01T22:41:43Z","pushed_at":"2018-11-01T12:44:36Z","git_url":"git://github.com/sympy/sympy.git","ssh_url":"git@github.com:sympy/sympy.git","clone_url":"https://github.com/sympy/sympy.git","svn_url":"https://github.com/sympy/sympy","homepage":"https://sympy.org/","size":96425,"stargazers_count":5265,"watchers_count":5265,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2393,"mirror_url":null,"archived":false,"open_issues_count":3469,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2393,"open_issues":3469,"watchers":5265,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15446"},"html":{"href":"https://github.com/sympy/sympy/pull/15446"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/15446"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/15446/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15446/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/15446/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/34f32c881cee60587b671a0dbc62d0fdd997d732"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JMSS-Unknown"}}