{"action":"created","comment":{"url":"https://api.github.com/repos/sympy/sympy/pulls/comments/74853478","id":74853478,"diff_hunk":"@@ -660,14 +660,14 @@ def test_settings():\n def test_RandomDomain():\n     from sympy.stats import Normal, Die, Exponential, pspace, where\n     X = Normal('x1', 0, 1)\n-    assert str(where(X > 0)) == \"Domain: And(0 < x1, x1 < oo)\"\n+    assert str(where(X > 0)) == \"Domain: (0 < x1 & x1 < oo)\"\n \n     D = Die('d1', 6)\n-    assert str(where(D > 4)) == \"Domain: Or(Eq(d1, 5), Eq(d1, 6))\"\n+    assert str(where(D > 4)) == \"Domain: (Eq(d1, 5) | Eq(d1, 6))\"\n \n     A = Exponential('a', 1)\n     B = Exponential('b', 1)\n-    assert str(pspace(Tuple(A, B)).domain) == \"Domain: And(0 <= a, 0 <= b, a < oo, b < oo)\"\n+    assert str(pspace(Tuple(A, B)).domain) == \"Domain: (0 <= a & 0 <= b & a < oo & b < oo)\"","path":"sympy/printing/tests/test_str.py","position":14,"original_position":14,"commit_id":"1986613a1b3cb166e2ba6769e70f6e958573589b","original_commit_id":"9b0a842373b29c3b8f0e85741f15ea2e00f0ed9b","user":{"login":"gorisaka","id":431627,"avatar_url":"https://avatars.githubusercontent.com/u/431627?v=3","gravatar_id":"","url":"https://api.github.com/users/gorisaka","html_url":"https://github.com/gorisaka","followers_url":"https://api.github.com/users/gorisaka/followers","following_url":"https://api.github.com/users/gorisaka/following{/other_user}","gists_url":"https://api.github.com/users/gorisaka/gists{/gist_id}","starred_url":"https://api.github.com/users/gorisaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gorisaka/subscriptions","organizations_url":"https://api.github.com/users/gorisaka/orgs","repos_url":"https://api.github.com/users/gorisaka/repos","events_url":"https://api.github.com/users/gorisaka/events{/privacy}","received_events_url":"https://api.github.com/users/gorisaka/received_events","type":"User","site_admin":false},"body":"Since `|` is also overridden the same problem occurs with it:\r\n```python\r\n>>> str((x > 1) | (x < -1))\r\nx > 1 | x < -1\r\n```","created_at":"2016-08-15T23:22:28Z","updated_at":"2016-08-15T23:22:28Z","html_url":"https://github.com/sympy/sympy/pull/11448#discussion_r74853478","pull_request_url":"https://api.github.com/repos/sympy/sympy/pulls/11448","_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments/74853478"},"html":{"href":"https://github.com/sympy/sympy/pull/11448#discussion_r74853478"},"pull_request":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11448"}}},"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11448","id":79387692,"html_url":"https://github.com/sympy/sympy/pull/11448","diff_url":"https://github.com/sympy/sympy/pull/11448.diff","patch_url":"https://github.com/sympy/sympy/pull/11448.patch","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11448","number":11448,"state":"open","locked":false,"title":"Changed Printing of Logic Expressions","user":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"body":"Fix for #11435.\r\n\r\n* Changed the functions _print_And() _print_Or() to print `&` and `|`\r\nsymbols in the expressions instead of `And` and `Or`.\r\n\r\n#### Sample Program\r\n```python\r\n>>> from sympy import *\r\n>>> from sympy.abc import x,y,z\r\n>>> And(Not(x), Or(y, z))\r\n((y | z) & ~(x))\r\n```\r\n\r\n* Previous tests are modified to account for new changes.","created_at":"2016-07-29T16:33:25Z","updated_at":"2016-08-15T23:22:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6e1b06a952b31c7041e2dfae72cc9543dfc9284","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sympy/sympy/pulls/11448/commits","review_comments_url":"https://api.github.com/repos/sympy/sympy/pulls/11448/comments","review_comment_url":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11448/comments","statuses_url":"https://api.github.com/repos/sympy/sympy/statuses/1986613a1b3cb166e2ba6769e70f6e958573589b","head":{"label":"parsoyaarihant:logic","ref":"logic","sha":"1986613a1b3cb166e2ba6769e70f6e958573589b","user":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"repo":{"id":52705541,"name":"sympy","full_name":"parsoyaarihant/sympy","owner":{"login":"parsoyaarihant","id":15258498,"avatar_url":"https://avatars.githubusercontent.com/u/15258498?v=3","gravatar_id":"","url":"https://api.github.com/users/parsoyaarihant","html_url":"https://github.com/parsoyaarihant","followers_url":"https://api.github.com/users/parsoyaarihant/followers","following_url":"https://api.github.com/users/parsoyaarihant/following{/other_user}","gists_url":"https://api.github.com/users/parsoyaarihant/gists{/gist_id}","starred_url":"https://api.github.com/users/parsoyaarihant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parsoyaarihant/subscriptions","organizations_url":"https://api.github.com/users/parsoyaarihant/orgs","repos_url":"https://api.github.com/users/parsoyaarihant/repos","events_url":"https://api.github.com/users/parsoyaarihant/events{/privacy}","received_events_url":"https://api.github.com/users/parsoyaarihant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/parsoyaarihant/sympy","description":"A computer algebra system written in pure Python","fork":true,"url":"https://api.github.com/repos/parsoyaarihant/sympy","forks_url":"https://api.github.com/repos/parsoyaarihant/sympy/forks","keys_url":"https://api.github.com/repos/parsoyaarihant/sympy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/parsoyaarihant/sympy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/parsoyaarihant/sympy/teams","hooks_url":"https://api.github.com/repos/parsoyaarihant/sympy/hooks","issue_events_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues/events{/number}","events_url":"https://api.github.com/repos/parsoyaarihant/sympy/events","assignees_url":"https://api.github.com/repos/parsoyaarihant/sympy/assignees{/user}","branches_url":"https://api.github.com/repos/parsoyaarihant/sympy/branches{/branch}","tags_url":"https://api.github.com/repos/parsoyaarihant/sympy/tags","blobs_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/refs{/sha}","trees_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/parsoyaarihant/sympy/statuses/{sha}","languages_url":"https://api.github.com/repos/parsoyaarihant/sympy/languages","stargazers_url":"https://api.github.com/repos/parsoyaarihant/sympy/stargazers","contributors_url":"https://api.github.com/repos/parsoyaarihant/sympy/contributors","subscribers_url":"https://api.github.com/repos/parsoyaarihant/sympy/subscribers","subscription_url":"https://api.github.com/repos/parsoyaarihant/sympy/subscription","commits_url":"https://api.github.com/repos/parsoyaarihant/sympy/commits{/sha}","git_commits_url":"https://api.github.com/repos/parsoyaarihant/sympy/git/commits{/sha}","comments_url":"https://api.github.com/repos/parsoyaarihant/sympy/comments{/number}","issue_comment_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues/comments{/number}","contents_url":"https://api.github.com/repos/parsoyaarihant/sympy/contents/{+path}","compare_url":"https://api.github.com/repos/parsoyaarihant/sympy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/parsoyaarihant/sympy/merges","archive_url":"https://api.github.com/repos/parsoyaarihant/sympy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/parsoyaarihant/sympy/downloads","issues_url":"https://api.github.com/repos/parsoyaarihant/sympy/issues{/number}","pulls_url":"https://api.github.com/repos/parsoyaarihant/sympy/pulls{/number}","milestones_url":"https://api.github.com/repos/parsoyaarihant/sympy/milestones{/number}","notifications_url":"https://api.github.com/repos/parsoyaarihant/sympy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/parsoyaarihant/sympy/labels{/name}","releases_url":"https://api.github.com/repos/parsoyaarihant/sympy/releases{/id}","deployments_url":"https://api.github.com/repos/parsoyaarihant/sympy/deployments","created_at":"2016-02-28T05:02:11Z","updated_at":"2016-02-28T05:02:17Z","pushed_at":"2016-08-14T09:35:18Z","git_url":"git://github.com/parsoyaarihant/sympy.git","ssh_url":"git@github.com:parsoyaarihant/sympy.git","clone_url":"https://github.com/parsoyaarihant/sympy.git","svn_url":"https://github.com/parsoyaarihant/sympy","homepage":"http://sympy.org/","size":74301,"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"}},"base":{"label":"sympy:master","ref":"master","sha":"025e63ae5f05c5c71a1e87ea62bfae43d068d845","user":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","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,"name":"sympy","full_name":"sympy/sympy","owner":{"login":"sympy","id":260832,"avatar_url":"https://avatars.githubusercontent.com/u/260832?v=3","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},"private":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":"2016-08-15T21:59:30Z","pushed_at":"2016-08-15T22:43:04Z","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":"http://sympy.org/","size":116542,"stargazers_count":3039,"watchers_count":3039,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1542,"mirror_url":null,"open_issues_count":2495,"forks":1542,"open_issues":2495,"watchers":3039,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11448"},"html":{"href":"https://github.com/sympy/sympy/pull/11448"},"issue":{"href":"https://api.github.com/repos/sympy/sympy/issues/11448"},"comments":{"href":"https://api.github.com/repos/sympy/sympy/issues/11448/comments"},"review_comments":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11448/comments"},"review_comment":{"href":"https://api.github.com/repos/sympy/sympy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sympy/sympy/pulls/11448/commits"},"statuses":{"href":"https://api.github.com/repos/sympy/sympy/statuses/1986613a1b3cb166e2ba6769e70f6e958573589b"}}}}
{"actor":{"display_login":"gorisaka"}}