{"action":"opened","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11555","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11555/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11555/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11555/events","html_url":"https://github.com/sympy/sympy/issues/11555","id":173780089,"number":11555,"title":"`clear_cache` leads to wrong results of `count` in 0.7.4.1","user":{"login":"Wrzlprmft","id":291070,"avatar_url":"https://avatars.githubusercontent.com/u/291070?v=3","gravatar_id":"","url":"https://api.github.com/users/Wrzlprmft","html_url":"https://github.com/Wrzlprmft","followers_url":"https://api.github.com/users/Wrzlprmft/followers","following_url":"https://api.github.com/users/Wrzlprmft/following{/other_user}","gists_url":"https://api.github.com/users/Wrzlprmft/gists{/gist_id}","starred_url":"https://api.github.com/users/Wrzlprmft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wrzlprmft/subscriptions","organizations_url":"https://api.github.com/users/Wrzlprmft/orgs","repos_url":"https://api.github.com/users/Wrzlprmft/repos","events_url":"https://api.github.com/users/Wrzlprmft/events{/privacy}","received_events_url":"https://api.github.com/users/Wrzlprmft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-29T13:54:40Z","updated_at":"2016-08-29T13:54:40Z","closed_at":null,"body":"I found a rather strange and annoying bug in SymPy 0.7.4.1 that is gone in SymPy 1.0, but I am unsure whether the underlying problem is actually fixed or the symptoms have just shifted. It is probably related to [this issue](http://github.com/sympy/sympy/issues/7687) but I am not sure. Hence I am reporting it here to leave a paper trail:\r\n\r\nHere is a minimal non-working example. The assertion in the last line should not fail but does:\r\n\r\n```Python\r\n\r\nfrom sympy.core.cache import clear_cache\r\nimport sympy\r\n\r\nexpression = sympy.Function(\"f\")(42)\r\nclear_cache()\r\nassert expression.count(sympy.Function(\"f\")) == 1\r\n\r\n```"}}
{"actor":{"display_login":"Wrzlprmft"}}