{"action":"opened","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11732","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11732/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11732/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11732/events","html_url":"https://github.com/sympy/sympy/issues/11732","id":183219793,"number":11732,"title":"Fails operators between Interval and some S.Sets","user":{"login":"latot","id":10523095,"avatar_url":"https://avatars.githubusercontent.com/u/10523095?v=3","gravatar_id":"","url":"https://api.github.com/users/latot","html_url":"https://github.com/latot","followers_url":"https://api.github.com/users/latot/followers","following_url":"https://api.github.com/users/latot/following{/other_user}","gists_url":"https://api.github.com/users/latot/gists{/gist_id}","starred_url":"https://api.github.com/users/latot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latot/subscriptions","organizations_url":"https://api.github.com/users/latot/orgs","repos_url":"https://api.github.com/users/latot/repos","events_url":"https://api.github.com/users/latot/events{/privacy}","received_events_url":"https://api.github.com/users/latot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-15T16:50:07Z","updated_at":"2016-10-15T16:50:07Z","closed_at":null,"body":"Hi, here the problem:\r\n```\r\n>>> Interval(1, 2) in S.EmptySet\r\nFalse\r\n>>> Interval(1, 2) in S.Integers\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/sets.py\", line 513, in __contains__\r\n    raise TypeError('contains did not evaluate to a bool: %r' % symb)\r\nTypeError: contains did not evaluate to a bool: Contains([1, 2], Integers())\r\n>>> Interval(1, 2) in S.Naturals\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/sets.py\", line 513, in __contains__\r\n    raise TypeError('contains did not evaluate to a bool: %r' % symb)\r\nTypeError: contains did not evaluate to a bool: Contains([1, 2], Naturals())\r\n>>> Interval(1, 2) in S.Naturals0\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/sets.py\", line 513, in __contains__\r\n    raise TypeError('contains did not evaluate to a bool: %r' % symb)\r\nTypeError: contains did not evaluate to a bool: Contains([1, 2], Naturals0())\r\n>>> Interval(1, 2) in S.Reals\r\nFalse\r\n>>> Interval(1, 2) in S.Complexes\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/sets.py\", line 511, in __contains__\r\n    symb = sympify(self.contains(other))\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/sets.py\", line 286, in contains\r\n    ret = sympify(self._contains(other))\r\n  File \"/usr/lib64/python2.7/site-packages/sympy/sets/fancysets.py\", line 1359, in _contains\r\n    re, im = other if isTuple else other.as_real_imag()\r\nAttributeError: 'Interval' object has no attribute 'as_real_imag'\r\n>>> Interval(1, 2) in S.UniversalSet\r\nTrue\r\n```\r\n\r\nFor now i found this in Contains function, this can exist in others, so for now this is all.\r\n\r\nThx. Cya."}}
{"actor":{"display_login":"latot"}}