We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Original report by Philipp A. (Bitbucket: flyingsheep, GitHub: flyingsheep).
Currently the operator docs are wrong:
!x
is.empty(x)
a and b
if (is.empty(a)) a else b
a or b
if (is.empty(a)) b else a
The __bool__ operator is responsible for all this, and optimally, it should be implemented for more intuitive behavior.
__bool__
The text was updated successfully, but these errors were encountered:
Original comment by Laurent Gautier (Bitbucket: lgautier, GitHub: lgautier).
I am probably missing something here. What part of the documentation do you believe to be wrong ?
Sorry, something went wrong.
No additional comment. Closing.
No branches or pull requests
Original report by Philipp A. (Bitbucket: flyingsheep, GitHub: flyingsheep).
Currently the operator docs are wrong:
!x
on a R object in python works likeis.empty(x)
in R,a and b
works likeif (is.empty(a)) a else b
, anda or b
works likeif (is.empty(a)) b else a
The
__bool__
operator is responsible for all this, and optimally, it should be implemented for more intuitive behavior.The text was updated successfully, but these errors were encountered: