{"action":"created","issue":{"url":"https://api.github.com/repos/seznam/fastrpc/issues/26","repository_url":"https://api.github.com/repos/seznam/fastrpc","labels_url":"https://api.github.com/repos/seznam/fastrpc/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/seznam/fastrpc/issues/26/comments","events_url":"https://api.github.com/repos/seznam/fastrpc/issues/26/events","html_url":"https://github.com/seznam/fastrpc/issues/26","id":153956610,"number":26,"title":"fastrp.Boolean isn't bool comparable","user":{"login":"rembish","id":470945,"avatar_url":"https://avatars.githubusercontent.com/u/470945?v=3","gravatar_id":"","url":"https://api.github.com/users/rembish","html_url":"https://github.com/rembish","followers_url":"https://api.github.com/users/rembish/followers","following_url":"https://api.github.com/users/rembish/following{/other_user}","gists_url":"https://api.github.com/users/rembish/gists{/gist_id}","starred_url":"https://api.github.com/users/rembish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rembish/subscriptions","organizations_url":"https://api.github.com/users/rembish/orgs","repos_url":"https://api.github.com/users/rembish/repos","events_url":"https://api.github.com/users/rembish/events{/privacy}","received_events_url":"https://api.github.com/users/rembish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T09:00:04Z","updated_at":"2016-05-10T09:07:06Z","closed_at":null,"body":"There are few issues with `fastrpc.Boolean`\r\n* they aren't like `bool`s:\r\n```python\r\nfrom fastrpc import Boolean\r\nBoolean(True) is True  # => False\r\nBoolean(False) is False  # => False\r\nBoolean(True).__nonzero__()  # raises AttributeError\r\n```\r\n* 7.x vs 5.x API problem:\r\n```python\r\nfrom fastrpc import Boolean\r\nBoolean(True) != None  # 5.x => True\r\nBoolean(True) != None  # 7.x raises TypeError: arg #2 is not a Boolean\r\n```"},"comment":{"url":"https://api.github.com/repos/seznam/fastrpc/issues/comments/218100802","html_url":"https://github.com/seznam/fastrpc/issues/26#issuecomment-218100802","issue_url":"https://api.github.com/repos/seznam/fastrpc/issues/26","id":218100802,"user":{"login":"rembish","id":470945,"avatar_url":"https://avatars.githubusercontent.com/u/470945?v=3","gravatar_id":"","url":"https://api.github.com/users/rembish","html_url":"https://github.com/rembish","followers_url":"https://api.github.com/users/rembish/followers","following_url":"https://api.github.com/users/rembish/following{/other_user}","gists_url":"https://api.github.com/users/rembish/gists{/gist_id}","starred_url":"https://api.github.com/users/rembish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rembish/subscriptions","organizations_url":"https://api.github.com/users/rembish/orgs","repos_url":"https://api.github.com/users/rembish/repos","events_url":"https://api.github.com/users/rembish/events{/privacy}","received_events_url":"https://api.github.com/users/rembish/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:07:06Z","updated_at":"2016-05-10T09:07:06Z","body":"BTW `if`s work well:\r\n```python\r\nfrom fastrpc import Boolean\r\nif Boolean(True):\r\n    print(\"TRUE\")\r\nif not Boolean(False):\r\n    print(\"FALSE\")\r\n```"}}