{"action":"created","issue":{"url":"https://api.github.com/repos/cython/cython/issues/384","labels_url":"https://api.github.com/repos/cython/cython/issues/384/labels{/name}","comments_url":"https://api.github.com/repos/cython/cython/issues/384/comments","events_url":"https://api.github.com/repos/cython/cython/issues/384/events","html_url":"https://github.com/cython/cython/pull/384","id":73977526,"number":384,"title":"Allow __new__ as an ordinary method","user":{"login":"jdemeyer","id":3625785,"avatar_url":"https://avatars.githubusercontent.com/u/3625785?v=3","gravatar_id":"","url":"https://api.github.com/users/jdemeyer","html_url":"https://github.com/jdemeyer","followers_url":"https://api.github.com/users/jdemeyer/followers","following_url":"https://api.github.com/users/jdemeyer/following{/other_user}","gists_url":"https://api.github.com/users/jdemeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/jdemeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdemeyer/subscriptions","organizations_url":"https://api.github.com/users/jdemeyer/orgs","repos_url":"https://api.github.com/users/jdemeyer/repos","events_url":"https://api.github.com/users/jdemeyer/events{/privacy}","received_events_url":"https://api.github.com/users/jdemeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-07T12:56:10Z","updated_at":"2015-05-08T04:43:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cython/cython/pulls/384","html_url":"https://github.com/cython/cython/pull/384","diff_url":"https://github.com/cython/cython/pull/384.diff","patch_url":"https://github.com/cython/cython/pull/384.patch"},"body":"Using `__new__` instead of `__cinit__` in Cython extension types has been a warning since 2007 and an error since 2010. That is plenty of time such that we can now remove the restriction that methods cannot be called `__new__`.\r\n\r\nThis patch does not make `__new__` special (but that shouldn't a problem, since `__del__` also isn't special in Cython), but at least it allows experimenting with methods called `__new__`."},"comment":{"url":"https://api.github.com/repos/cython/cython/issues/comments/100099064","html_url":"https://github.com/cython/cython/pull/384#issuecomment-100099064","issue_url":"https://api.github.com/repos/cython/cython/issues/384","id":100099064,"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":"2015-05-08T04:43:25Z","updated_at":"2015-05-08T04:43:25Z","body":"I'm -1 for simply allowing __new__ lest people start using it before we\nactually implement it. For experimentation you could just use another name,\nright?\n\nOn Thu, May 7, 2015 at 8:31 AM, jdemeyer <notifications@github.com> wrote:\n\n> Hmm, my branch still doesn't allow __new__ to be used since slot methods\n> take precedence over custom methods unless the METH_COEXIST is given\n> (which Cython does not use).\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/cython/cython/pull/384#issuecomment-99911897>.\n>\n"}}