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

[GitHub] [arrow] zfoobar commented on pull request #34991: GH-34987: [PYTHON] Truthy/Falsy for boolean scalars.

zfoobar commented on PR #34991:
URL: https://github.com/apache/arrow/pull/34991#issuecomment-1501120274

   Good move. I have to see why it’s failing the macos runner as wellSent from my iPhoneOn Apr 9, 2023, at 2:40 AM, Randolf Scholz ***@***.***> wrote:
   Following my #34987 (comment), I think it should be:
   def __bool__(self) -> bool:
       if self.is_valid:
           return self.as_py()
       raise TypeError("Boolean value of null is ambiguous.")
   
   —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>


-- 
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