You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pitrou (via GitHub)" <gi...@apache.org> on 2023/05/16 14:37:42 UTC

[GitHub] [arrow] pitrou commented on pull request #34993: GH-34987: [Python] Truthy/Falsy for boolean scalars

pitrou commented on PR #34993:
URL: https://github.com/apache/arrow/pull/34993#issuecomment-1549805782

   Having `__bool__` return something else than a boolean, or raise an exception, is generally rather nasty as it breaks a widespread expectation about boolean testing.
   
   Also the boolean value of `None` is well-defined:
   ```pycon
   >>> bool(None)
   False
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org