{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/15479","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/15479/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/15479/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/15479/events","html_url":"https://github.com/sympy/sympy/pull/15479","id":379564577,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5OTc5MDI3","number":15479,"title":"Sets : Union Supports Python set","user":{"login":"souravgl0","id":15008878,"node_id":"MDQ6VXNlcjE1MDA4ODc4","avatar_url":"https://avatars2.githubusercontent.com/u/15008878?v=4","gravatar_id":"","url":"https://api.github.com/users/souravgl0","html_url":"https://github.com/souravgl0","followers_url":"https://api.github.com/users/souravgl0/followers","following_url":"https://api.github.com/users/souravgl0/following{/other_user}","gists_url":"https://api.github.com/users/souravgl0/gists{/gist_id}","starred_url":"https://api.github.com/users/souravgl0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/souravgl0/subscriptions","organizations_url":"https://api.github.com/users/souravgl0/orgs","repos_url":"https://api.github.com/users/souravgl0/repos","events_url":"https://api.github.com/users/souravgl0/events{/privacy}","received_events_url":"https://api.github.com/users/souravgl0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-11T21:21:19Z","updated_at":"2018-11-16T08:05:00Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/15479","html_url":"https://github.com/sympy/sympy/pull/15479","diff_url":"https://github.com/sympy/sympy/pull/15479.diff","patch_url":"https://github.com/sympy/sympy/pull/15479.patch"},"body":"Union Calls _sympify when an argument is a python set, except when\r\nany element of that set is a sympy Set. This is because _sympify gives\r\nunintended result when an element of set is a Set.\r\n@asmeurer Does this solve the issue?\r\nExample\r\n\r\n    >>> Union({1},{2},{3})\r\n    {1,2,3}\r\n    >>> type(Union({1},{2},{3}))\r\n    <class 'sympy.sets.sets.FiniteSet'>\r\n\r\nHowever, This does not work.\r\n        \r\n    >>> Union({1,Interval(0,1)})\r\n        TypeError: Input must be Sets or iterables of Sets\r\n\r\nAdds Test in test_union() for checking this functionality.\r\n\r\n<!-- Your title above should be a short description of what\r\nwas changed. Do not include the issue number in the title. -->\r\n\r\n#### References to other Issues or PRs\r\nFixes #15448 \r\n<!-- If this pull request fixes an issue, write \"Fixes #NNNN\" in that exact\r\nformat, e.g. \"Fixes #1234\". See\r\nhttps://github.com/blog/1506-closing-issues-via-pull-requests .-->\r\n\r\n#### Release Notes\r\n\r\n<!-- Write the release notes for this release below. See\r\nhttps://github.com/sympy/sympy/wiki/Writing-Release-Notes for more information\r\non how to write release notes. The bot will check your release notes\r\nautomatically to see if they are formatted correctly. -->\r\n\r\n<!-- BEGIN RELEASE NOTES -->\r\n* sets\r\n    *  `Union` now supports Python set `Union({1,2},{3,4})={1,2,3,4}`\r\n\r\n<!-- END RELEASE NOTES -->\r\n"},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/439313029","html_url":"https://github.com/sympy/sympy/pull/15479#issuecomment-439313029","issue_url":"https://api.github.com/repos/sympy/sympy/issues/15479","id":439313029,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTMxMzAyOQ==","user":{"login":"Upabjojr","id":4128856,"node_id":"MDQ6VXNlcjQxMjg4NTY=","avatar_url":"https://avatars0.githubusercontent.com/u/4128856?v=4","gravatar_id":"","url":"https://api.github.com/users/Upabjojr","html_url":"https://github.com/Upabjojr","followers_url":"https://api.github.com/users/Upabjojr/followers","following_url":"https://api.github.com/users/Upabjojr/following{/other_user}","gists_url":"https://api.github.com/users/Upabjojr/gists{/gist_id}","starred_url":"https://api.github.com/users/Upabjojr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Upabjojr/subscriptions","organizations_url":"https://api.github.com/users/Upabjojr/orgs","repos_url":"https://api.github.com/users/Upabjojr/repos","events_url":"https://api.github.com/users/Upabjojr/events{/privacy}","received_events_url":"https://api.github.com/users/Upabjojr/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T08:05:00Z","updated_at":"2018-11-16T08:05:00Z","author_association":"CONTRIBUTOR","body":"The tests should work now if you restart them."}}
{"actor":{"display_login":"Upabjojr"}}