Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
RustPython
/
RustPython
Public
Notifications
You must be signed in to change notification settings
Fork
1.5k
Star
22.3k
Code
Issues
295
Pull requests
107
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Optimize redundant bool check
- #7176
#7176
Merged
youknowone
merged 9 commits into
RustPython:main
RustPython/RustPython:main
from
moreal:optimize-redundant-bool-check
moreal/RustPython:optimize-redundant-bool-check
Copy head branch name to clipboard
Feb 17, 2026
Conversation
Commits
9
(9)
Checks
Files changed
Merged
Optimize redundant bool check
#7176
youknowone
merged 9 commits into
RustPython:main
RustPython/RustPython:main
from
moreal:optimize-redundant-bool-check
moreal/RustPython:optimize-redundant-bool-check
Copy head branch name to clipboard
Commits
Commits on Feb 17, 2026
Add compile_bool_op_inner and optimize nested opposite-operator BoolOps to avoid redundant __bool__ calls
Show description for 11152d4
moreal
and
claude
committed
11152d4
View commit details
Copy full SHA for 11152d4
Browse repository at this point
Add snapshot test for nested BoolOp bytecode
Show description for 9a2d780
moreal
and
claude
committed
9a2d780
View commit details
Copy full SHA for 9a2d780
Browse repository at this point
Add runtime test for redundant __bool__ check (issue #3567)
Show description for d8ccc98
moreal
and
claude
committed
d8ccc98
View commit details
Copy full SHA for d8ccc98
Browse repository at this point
Apply clippy and rustfmt
moreal
committed
66cab2c
View commit details
Copy full SHA for 66cab2c
Browse repository at this point
Apply ruff format
moreal
committed
a500d54
View commit details
Copy full SHA for a500d54
Browse repository at this point
Refactor compile_bool_op: extract emit_short_circuit_test and unify with compile_bool_op_inner
Show description for 35706f1
moreal
and
claude
committed
35706f1
View commit details
Copy full SHA for 35706f1
Browse repository at this point
Relocate redundant __bool__ check test snippet
moreal
committed
e68c018
View commit details
Copy full SHA for e68c018
Browse repository at this point
Update extra_tests/snippets/syntax_short_circuit_bool.py
youknowone
authored
dbf95a3
View commit details
Copy full SHA for dbf95a3
Browse repository at this point
Fix assertion in syntax_short_circuit_bool
moreal
committed
d6e48ff
View commit details
Copy full SHA for d6e48ff
Browse repository at this point
You can’t perform that action at this time.