{"action":"created","issue":{"url":"https://api.github.com/repos/pybind/pybind11/issues/429","repository_url":"https://api.github.com/repos/pybind/pybind11","labels_url":"https://api.github.com/repos/pybind/pybind11/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/pybind/pybind11/issues/429/comments","events_url":"https://api.github.com/repos/pybind/pybind11/issues/429/events","html_url":"https://github.com/pybind/pybind11/pull/429","id":180488625,"number":429,"title":"Re-add accessor bool operator","user":{"login":"jagerman","id":4459524,"avatar_url":"https://avatars.githubusercontent.com/u/4459524?v=3","gravatar_id":"","url":"https://api.github.com/users/jagerman","html_url":"https://github.com/jagerman","followers_url":"https://api.github.com/users/jagerman/followers","following_url":"https://api.github.com/users/jagerman/following{/other_user}","gists_url":"https://api.github.com/users/jagerman/gists{/gist_id}","starred_url":"https://api.github.com/users/jagerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagerman/subscriptions","organizations_url":"https://api.github.com/users/jagerman/orgs","repos_url":"https://api.github.com/users/jagerman/repos","events_url":"https://api.github.com/users/jagerman/events{/privacy}","received_events_url":"https://api.github.com/users/jagerman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-02T00:56:46Z","updated_at":"2016-10-02T20:44:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pybind/pybind11/pulls/429","html_url":"https://github.com/pybind/pybind11/pull/429","diff_url":"https://github.com/pybind/pybind11/pull/429.diff","patch_url":"https://github.com/pybind/pybind11/pull/429.patch"},"body":"PR #425 removed the `bool` operator from attribute accessors.  This was quite useful, and moreover it was the only way before #425 added the `hasattr` function to check for the existence of an attribute, via:\r\n\r\n```C++\r\nif (obj.attr(\"foo\")) { ... }\r\n```\r\n\r\nand as such is probably in use by more pybind11 users than just me.  Since nothing in the PR #425 discussion or commit messages indicates that this was intentionally removed, I assume the removal was an oversight."},"comment":{"url":"https://api.github.com/repos/pybind/pybind11/issues/comments/250994682","html_url":"https://github.com/pybind/pybind11/pull/429#issuecomment-250994682","issue_url":"https://api.github.com/repos/pybind/pybind11/issues/429","id":250994682,"user":{"login":"jagerman","id":4459524,"avatar_url":"https://avatars.githubusercontent.com/u/4459524?v=3","gravatar_id":"","url":"https://api.github.com/users/jagerman","html_url":"https://github.com/jagerman","followers_url":"https://api.github.com/users/jagerman/followers","following_url":"https://api.github.com/users/jagerman/following{/other_user}","gists_url":"https://api.github.com/users/jagerman/gists{/gist_id}","starred_url":"https://api.github.com/users/jagerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagerman/subscriptions","organizations_url":"https://api.github.com/users/jagerman/orgs","repos_url":"https://api.github.com/users/jagerman/repos","events_url":"https://api.github.com/users/jagerman/events{/privacy}","received_events_url":"https://api.github.com/users/jagerman/received_events","type":"User","site_admin":false},"created_at":"2016-10-02T20:44:42Z","updated_at":"2016-10-02T20:44:42Z","body":"Reimplemented as just simple wrappers around `hasattr()`/`obj.contains()` with appropriate deprecation warnings.  It also only applies to attributes and generic items, not tuples or lists."}}
{"actor":{"display_login":"jagerman"}}