Skip to content

Conversation

noamcohen97
Copy link
Contributor

@noamcohen97 noamcohen97 commented Jun 6, 2025

Copy link
Member

@Fidget-Spinner Fidget-Spinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Member

@brandtbucher brandtbucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, can you add a test for the bool case?

@noamcohen97
Copy link
Contributor Author

Thanks for reviewing @brandtbucher and @Fidget-Spinner.
I added a test case for booleans

@brandtbucher
Copy link
Member

Hm, I didn't realize we had deprecated bitwise inversion on bool. Let's just drop bool from the optimizer, it's not worth it.

@noamcohen97
Copy link
Contributor Author

Let's just drop bool from the optimizer, it's not worth it.

Sounds good

@Fidget-Spinner Fidget-Spinner merged commit b150b6a into python:main Jun 9, 2025
54 checks passed
@noamcohen97 noamcohen97 deleted the optimize-unary-invert branch June 9, 2025 10:48
lkollar pushed a commit to lkollar/cpython that referenced this pull request Jun 19, 2025
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
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

Successfully merging this pull request may close these issues.

3 participants