{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/5967","labels_url":"https://api.github.com/repos/numpy/numpy/issues/5967/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/5967/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/5967/events","html_url":"https://github.com/numpy/numpy/pull/5967","id":88223321,"number":5967,"title":"BUG: fix inconsistency with np.array(['']) being truthy","user":{"login":"wimglenn","id":6615374,"avatar_url":"https://avatars.githubusercontent.com/u/6615374?v=3","gravatar_id":"","url":"https://api.github.com/users/wimglenn","html_url":"https://github.com/wimglenn","followers_url":"https://api.github.com/users/wimglenn/followers","following_url":"https://api.github.com/users/wimglenn/following{/other_user}","gists_url":"https://api.github.com/users/wimglenn/gists{/gist_id}","starred_url":"https://api.github.com/users/wimglenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimglenn/subscriptions","organizations_url":"https://api.github.com/users/wimglenn/orgs","repos_url":"https://api.github.com/users/wimglenn/repos","events_url":"https://api.github.com/users/wimglenn/events{/privacy}","received_events_url":"https://api.github.com/users/wimglenn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-14T17:58:40Z","updated_at":"2015-06-14T20:08:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/5967","html_url":"https://github.com/numpy/numpy/pull/5967","diff_url":"https://github.com/numpy/numpy/pull/5967.diff","patch_url":"https://github.com/numpy/numpy/pull/5967.patch"},"body":"```\r\na = np.array([0])\r\nb = np.array([None])\r\nc = np.array([''])\r\nd = np.array(['   '])\r\n```\r\n\r\nWhy should we have this inconsistency:\r\n\r\n```\r\n>>> bool(a)\r\nFalse\r\n>>> bool(b)\r\nFalse\r\n>>> bool(c)\r\nTrue\r\n>>> bool(d)\r\nFalse\r\n```"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/111872060","html_url":"https://github.com/numpy/numpy/pull/5967#issuecomment-111872060","issue_url":"https://api.github.com/repos/numpy/numpy/issues/5967","id":111872060,"user":{"login":"seberg","id":61977,"avatar_url":"https://avatars.githubusercontent.com/u/61977?v=3","gravatar_id":"","url":"https://api.github.com/users/seberg","html_url":"https://github.com/seberg","followers_url":"https://api.github.com/users/seberg/followers","following_url":"https://api.github.com/users/seberg/following{/other_user}","gists_url":"https://api.github.com/users/seberg/gists{/gist_id}","starred_url":"https://api.github.com/users/seberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seberg/subscriptions","organizations_url":"https://api.github.com/users/seberg/orgs","repos_url":"https://api.github.com/users/seberg/repos","events_url":"https://api.github.com/users/seberg/events{/privacy}","received_events_url":"https://api.github.com/users/seberg/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T20:08:13Z","updated_at":"2015-06-14T20:08:13Z","body":"On the other hand, I find the whitespace rule odd, python seems to behave different?"}}