{"action":"opened","issue":{"url":"https://api.github.com/repos/JukkaL/mypy/issues/1052","labels_url":"https://api.github.com/repos/JukkaL/mypy/issues/1052/labels{/name}","comments_url":"https://api.github.com/repos/JukkaL/mypy/issues/1052/comments","events_url":"https://api.github.com/repos/JukkaL/mypy/issues/1052/events","html_url":"https://github.com/JukkaL/mypy/issues/1052","id":120595372,"number":1052,"title":"__setattr__ method that just raises an exception","user":{"login":"JukkaL","id":1107911,"avatar_url":"https://avatars.githubusercontent.com/u/1107911?v=3","gravatar_id":"","url":"https://api.github.com/users/JukkaL","html_url":"https://github.com/JukkaL","followers_url":"https://api.github.com/users/JukkaL/followers","following_url":"https://api.github.com/users/JukkaL/following{/other_user}","gists_url":"https://api.github.com/users/JukkaL/gists{/gist_id}","starred_url":"https://api.github.com/users/JukkaL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JukkaL/subscriptions","organizations_url":"https://api.github.com/users/JukkaL/orgs","repos_url":"https://api.github.com/users/JukkaL/repos","events_url":"https://api.github.com/users/JukkaL/events{/privacy}","received_events_url":"https://api.github.com/users/JukkaL/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JukkaL/mypy/labels/feature","name":"feature","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-05T23:26:53Z","updated_at":"2015-12-05T23:26:53Z","closed_at":null,"body":"Consider this class:\r\n\r\n```\r\nclass A:\r\n    def __setattr__(self, x, y):\r\n        raise RuntimeError\r\n```\r\n\r\nThe above implementation should be considered special and all attribute assignments via `A`, including via `self` should be rejected.\r\n\r\nThis is related to #521 (general `__setattr__` support)."}}