{"action":"created","issue":{"url":"https://api.github.com/repos/brython-dev/brython/issues/347","labels_url":"https://api.github.com/repos/brython-dev/brython/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/brython-dev/brython/issues/347/comments","events_url":"https://api.github.com/repos/brython-dev/brython/issues/347/events","html_url":"https://github.com/brython-dev/brython/issues/347","id":121441258,"number":347,"title":"ABCMeta and isinstance issues","user":{"login":"fsvend","id":8490469,"avatar_url":"https://avatars.githubusercontent.com/u/8490469?v=3","gravatar_id":"","url":"https://api.github.com/users/fsvend","html_url":"https://github.com/fsvend","followers_url":"https://api.github.com/users/fsvend/followers","following_url":"https://api.github.com/users/fsvend/following{/other_user}","gists_url":"https://api.github.com/users/fsvend/gists{/gist_id}","starred_url":"https://api.github.com/users/fsvend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsvend/subscriptions","organizations_url":"https://api.github.com/users/fsvend/orgs","repos_url":"https://api.github.com/users/fsvend/repos","events_url":"https://api.github.com/users/fsvend/events{/privacy}","received_events_url":"https://api.github.com/users/fsvend/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-10T09:39:17Z","updated_at":"2015-12-12T16:14:30Z","closed_at":"2015-12-12T16:10:53Z","body":"I just tested Brython 3.2.1 and this fails to execute correctly:\r\n```\r\nfrom abc import ABCMeta, abstractmethod\r\n\r\nclass interface(metaclass=ABCMeta):\r\n    @abstractmethod\r\n    def test(self):\r\n        return\r\n\r\nclass implementation(interface):\r\n    def test(self):\r\n        return\r\n\r\ni = implementation()\r\nprint(isinstance(i, interface))\r\n```\r\n\r\nThe implementation doesn't honour the abstract base class, ie. I can rename 'test' in the implementation class and instantiate it. This shouldn't be possible. Also, the print statement returns False, which is wrong."},"comment":{"url":"https://api.github.com/repos/brython-dev/brython/issues/comments/164164332","html_url":"https://github.com/brython-dev/brython/issues/347#issuecomment-164164332","issue_url":"https://api.github.com/repos/brython-dev/brython/issues/347","id":164164332,"user":{"login":"PierreQuentel","id":3447215,"avatar_url":"https://avatars.githubusercontent.com/u/3447215?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreQuentel","html_url":"https://github.com/PierreQuentel","followers_url":"https://api.github.com/users/PierreQuentel/followers","following_url":"https://api.github.com/users/PierreQuentel/following{/other_user}","gists_url":"https://api.github.com/users/PierreQuentel/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreQuentel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreQuentel/subscriptions","organizations_url":"https://api.github.com/users/PierreQuentel/orgs","repos_url":"https://api.github.com/users/PierreQuentel/repos","events_url":"https://api.github.com/users/PierreQuentel/events{/privacy}","received_events_url":"https://api.github.com/users/PierreQuentel/received_events","type":"User","site_admin":false},"created_at":"2015-12-12T16:14:30Z","updated_at":"2015-12-12T16:14:30Z","body":"Thanks for the report. The commit referenced above fixes the bug in the sense that `print isinstance(i, interface)` is true. But I'm not sure what you mean by _ I can rename 'test' in the implementation class and instantiate it. This shouldn't be possible._ : the code doesn't raise an exception in CPython."}}