Skip to content
New issue

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

Fix docs for boolean operators #535

Closed
lgautier opened this issue Feb 22, 2019 · 2 comments
Closed

Fix docs for boolean operators #535

lgautier opened this issue Feb 22, 2019 · 2 comments

Comments

@lgautier
Copy link
Member

Original report by Philipp A. (Bitbucket: flyingsheep, GitHub: flyingsheep).


Currently the operator docs are wrong:

  • !x on a R object in python works like is.empty(x) in R,
  • a and b works like if (is.empty(a)) a else b, and
  • a or b works like 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.

@lgautier
Copy link
Member Author

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 ?

@lgautier lgautier transferred this issue from another repository Dec 26, 2019
@lgautier
Copy link
Member Author

No additional comment. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant