{"action":"opened","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11539","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11539/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11539/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11539/events","html_url":"https://github.com/sympy/sympy/issues/11539","id":172567839,"number":11539,"title":"Easier way to list all possible (old) assumptions in code ","user":{"login":"asmeurer","id":71486,"avatar_url":"https://avatars.githubusercontent.com/u/71486?v=3","gravatar_id":"","url":"https://api.github.com/users/asmeurer","html_url":"https://github.com/asmeurer","followers_url":"https://api.github.com/users/asmeurer/followers","following_url":"https://api.github.com/users/asmeurer/following{/other_user}","gists_url":"https://api.github.com/users/asmeurer/gists{/gist_id}","starred_url":"https://api.github.com/users/asmeurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmeurer/subscriptions","organizations_url":"https://api.github.com/users/asmeurer/orgs","repos_url":"https://api.github.com/users/asmeurer/repos","events_url":"https://api.github.com/users/asmeurer/events{/privacy}","received_events_url":"https://api.github.com/users/asmeurer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sympy/sympy/labels/assumptions","name":"assumptions","color":"0000FF"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-22T22:13:40Z","updated_at":"2016-08-22T22:13:40Z","closed_at":null,"body":"Right now, the only way to access a list of all possible (old) assumptions in in the Sphinx documentation, at http://docs.sympy.org/latest/modules/core.html#module-sympy.core.assumptions.\r\n\r\nTo access this list in code, the only way I found is\r\n\r\n```py\r\nsys.modules[ 'sympy.core.assumptions']._assume_defined\r\n```\r\n\r\nYou have to use `sys.modules` because of an idiosyncrasy of Python's import system. When you do `import sympy.core.assumptions`, you can't access `sympy.core.assumptions`, because `sympy.core` references `sympy.core.core` (see https://twitter.com/asmeurer/status/751202765347627009 for a simpler example of this).\r\n\r\nThen, beyond that, the only way to access it is via a private variable. \r\n\r\nThere should be an easier way to access this set. I'm unsure what exactly the API for it should look like, though. "}}
{"actor":{"display_login":"asmeurer"}}