- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | serhiy.storchaka |
|---|---|
| Recipients | Mark.Shannon, Mohamed_Atef, ethan.furman, gregory.p.smith, gvanrossum, josh.r, pablogsal, serhiy.storchaka, stestagg |
| Date | 2021-02-02.12:28:43 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1612268923.11.0.136961475152.issue42899@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
`True or b` is always True and differs from `b or True`. `x = True and y` is always equivalent to `x = y`. What is the use case of your optimization? Can you provide examples of real code which would benefit from removing all boolean tests (not only the repeated one) of non-constants? If there are not such examples or they are not common, there is no need of this optimization. Just revert that changes. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2021-02-02 12:28:43 | serhiy.storchaka | set | recipients: + serhiy.storchaka, gvanrossum, gregory.p.smith, ethan.furman, Mark.Shannon, josh.r, Mohamed_Atef, pablogsal, stestagg |
| 2021-02-02 12:28:43 | serhiy.storchaka | set | messageid: <1612268923.11.0.136961475152.issue42899@roundup.psfhosted.org> |
| 2021-02-02 12:28:43 | serhiy.storchaka | link | issue42899 messages |
| 2021-02-02 12:28:43 | serhiy.storchaka | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
