{"action":"created","issue":{"url":"https://api.github.com/repos/wjakob/pybind11/issues/96","repository_url":"https://api.github.com/repos/wjakob/pybind11","labels_url":"https://api.github.com/repos/wjakob/pybind11/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/wjakob/pybind11/issues/96/comments","events_url":"https://api.github.com/repos/wjakob/pybind11/issues/96/events","html_url":"https://github.com/wjakob/pybind11/pull/96","id":131463865,"number":96,"title":"Set module name for defined functions","user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars.githubusercontent.com/u/2397974?v=3","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-04T20:24:13Z","updated_at":"2016-02-04T20:54:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wjakob/pybind11/pulls/96","html_url":"https://github.com/wjakob/pybind11/pull/96","diff_url":"https://github.com/wjakob/pybind11/pull/96.diff","patch_url":"https://github.com/wjakob/pybind11/pull/96.patch"},"body":"\"fixes\" #95 "},"comment":{"url":"https://api.github.com/repos/wjakob/pybind11/issues/comments/180046113","html_url":"https://github.com/wjakob/pybind11/pull/96#issuecomment-180046113","issue_url":"https://api.github.com/repos/wjakob/pybind11/issues/96","id":180046113,"user":{"login":"SylvainCorlay","id":2397974,"avatar_url":"https://avatars.githubusercontent.com/u/2397974?v=3","gravatar_id":"","url":"https://api.github.com/users/SylvainCorlay","html_url":"https://github.com/SylvainCorlay","followers_url":"https://api.github.com/users/SylvainCorlay/followers","following_url":"https://api.github.com/users/SylvainCorlay/following{/other_user}","gists_url":"https://api.github.com/users/SylvainCorlay/gists{/gist_id}","starred_url":"https://api.github.com/users/SylvainCorlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SylvainCorlay/subscriptions","organizations_url":"https://api.github.com/users/SylvainCorlay/orgs","repos_url":"https://api.github.com/users/SylvainCorlay/repos","events_url":"https://api.github.com/users/SylvainCorlay/events{/privacy}","received_events_url":"https://api.github.com/users/SylvainCorlay/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T20:54:16Z","updated_at":"2016-02-04T20:54:16Z","body":"So apparently you have the following inheritance tree\r\n```\r\ngeneric_type            cpp_function\r\n     |                        |\r\n     V                        V\r\n  object        <----     function\r\n     |\r\n     V\r\n  handle\r\n```\r\n\r\nSo `cpp_function` does not get the `__module__` attribute.\r\n\r\n"}}