{"action":"created","issue":{"url":"https://api.github.com/repos/robertwb/issues-import-test/issues/31","repository_url":"https://api.github.com/repos/robertwb/issues-import-test","labels_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/31/comments","events_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/31/events","html_url":"https://github.com/robertwb/issues-import-test/issues/31","id":168183398,"number":31,"title":"no mangling of double underscore names in class","user":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robertwb/issues-import-test/labels/bug","name":"bug","color":"ee0701"},{"url":"https://api.github.com/repos/robertwb/issues-import-test/labels/C:%20Code%20Generation","name":"C: Code Generation","color":"0000aa"},{"url":"https://api.github.com/repos/robertwb/issues-import-test/labels/P:%20minor","name":"P: minor","color":"dcffff"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/robertwb/issues-import-test/milestones/36","html_url":"https://github.com/robertwb/issues-import-test/milestones/1.0","labels_url":"https://api.github.com/repos/robertwb/issues-import-test/milestones/36/labels","id":1910362,"number":36,"title":"1.0","description":"None","creator":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-07-28T19:35:22Z","updated_at":"2016-07-28T20:02:04Z","due_on":"2012-01-01T08:00:00Z","closed_at":null},"comments":6,"created_at":"2016-07-28T20:01:50Z","updated_at":"2016-07-28T20:02:06Z","closed_at":null,"body":"**Reported by robertwb on 6 May 2008 00:16 UTC**\nWhen defining a class attribute that starts with double underscores, CPython mangles the name from __bla to _classname_bla, but Cython produces classes don't.\r\n\r\nMinimal example:\r\n\r\n```\r\ntest.pyx and good.py are the same, like so:\r\nclass Test(object):\r\n    __bla = 1\r\n\r\nalon@alfajor:~/src/bugs/cython/doubleunderscore$ python\r\nPython 2.5.2 (r252:60911, Feb 26 2008, 15:04:22)\r\n[4.2.3 (Ubuntu 4.2.3-2ubuntu1)](GCC) on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import test\r\n>>> test.Test\r\n<class 'test.Test'>\r\n>>> test.Test.__bla\r\n1\r\n>>>\r\nalon@alfajor:~/src/bugs/cython/doubleunderscore$\r\nalon@alfajor:~/src/bugs/cython/doubleunderscore$ ls\r\nbuild setup.py test.c test.pyx test.so\r\nalon@alfajor:~/src/bugs/cython/doubleunderscore$ cp test.pyx good.py\r\nalon@alfajor:~/src/bugs/cython/doubleunderscore$ python\r\nPython 2.5.2 (r252:60911, Feb 26 2008, 15:04:22)\r\n[4.2.3 (Ubuntu 4.2.3-2ubuntu1)](GCC) on linux2\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n>>> import good\r\n>>> good.Test\r\n<class 'good.Test'>\r\n>>> good.Test.__bla\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nAttributeError: type object 'Test' has no attribute '__bla'\r\n>>> good.Test._Test__bla\r\n1\r\n>>>\r\n```\n\nMigrated-From: http://trac.cython.org/ticket/5"},"comment":{"url":"https://api.github.com/repos/robertwb/issues-import-test/issues/comments/236008307","html_url":"https://github.com/robertwb/issues-import-test/issues/31#issuecomment-236008307","issue_url":"https://api.github.com/repos/robertwb/issues-import-test/issues/31","id":236008307,"user":{"login":"robertwb","id":486017,"avatar_url":"https://avatars.githubusercontent.com/u/486017?v=3","gravatar_id":"","url":"https://api.github.com/users/robertwb","html_url":"https://github.com/robertwb","followers_url":"https://api.github.com/users/robertwb/followers","following_url":"https://api.github.com/users/robertwb/following{/other_user}","gists_url":"https://api.github.com/users/robertwb/gists{/gist_id}","starred_url":"https://api.github.com/users/robertwb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertwb/subscriptions","organizations_url":"https://api.github.com/users/robertwb/orgs","repos_url":"https://api.github.com/users/robertwb/repos","events_url":"https://api.github.com/users/robertwb/events{/privacy}","received_events_url":"https://api.github.com/users/robertwb/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T20:02:06Z","updated_at":"2016-07-28T20:02:06Z","body":"**Modified by scoder on 21 Dec 2008 20:09 UTC**"}}
{"actor":{"display_login":"robertwb"}}