Skip to content

CLN: Remove __nonzero__ in favor of __bool__ #59275

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

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

mroeschke
Copy link
Member

__nonzero__ was a Python 2 convention dropped in Python 3: https://docs.python.org/3/whatsnew/3.0.html#operators-and-special-methods

@mroeschke mroeschke added this to the 3.0 milestone Jul 18, 2024
@mroeschke
Copy link
Member Author

Going to merge this in. Happy to address any followups

@mroeschke mroeschke merged commit 8f737b3 into pandas-dev:main Jul 22, 2024
48 of 49 checks passed
@mroeschke mroeschke deleted the cln/__nonzero__ branch July 22, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant